at master 1.1 kB view raw
1{ 2 chromium, 3 testers, 4 chromedriver, 5}: 6chromium.mkDerivation (_: { 7 name = "chromedriver"; 8 packageName = "chromedriver"; 9 10 # Build the unstripped target, because stripping in Chromium relies on a prebuilt strip binary 11 # that doesn't run on NixOS, and we will strip everything ourselves later anyway. 12 buildTargets = [ "chromedriver.unstripped" ]; 13 14 installPhase = '' 15 install -Dm555 $buildPath/chromedriver.unstripped $out/bin/chromedriver 16 ''; 17 18 # Kill existing postFixup that tries to patchelf things 19 postFixup = null; 20 21 passthru.tests.version = testers.testVersion { package = chromedriver; }; 22 23 meta = chromium.meta // { 24 homepage = "https://chromedriver.chromium.org/"; 25 description = "WebDriver server for running Selenium tests on Chrome"; 26 longDescription = '' 27 WebDriver is an open source tool for automated testing of webapps across 28 many browsers. It provides capabilities for navigating to web pages, user 29 input, JavaScript execution, and more. ChromeDriver is a standalone 30 server that implements the W3C WebDriver standard. 31 ''; 32 mainProgram = "chromedriver"; 33 }; 34})