
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
nix-build a08b3a4d19
.tar.gz \
--argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7
result/bin/apply-formatting $NIXPKGS_PATH
35 lines
1.1 KiB
Nix
35 lines
1.1 KiB
Nix
{
|
|
chromium,
|
|
testers,
|
|
chromedriver,
|
|
}:
|
|
chromium.mkDerivation (_: {
|
|
name = "chromedriver";
|
|
packageName = "chromedriver";
|
|
|
|
# Build the unstripped target, because stripping in Chromium relies on a prebuilt strip binary
|
|
# that doesn't run on NixOS, and we will strip everything ourselves later anyway.
|
|
buildTargets = [ "chromedriver.unstripped" ];
|
|
|
|
installPhase = ''
|
|
install -Dm555 $buildPath/chromedriver.unstripped $out/bin/chromedriver
|
|
'';
|
|
|
|
# Kill existing postFixup that tries to patchelf things
|
|
postFixup = null;
|
|
|
|
passthru.tests.version = testers.testVersion { package = chromedriver; };
|
|
|
|
meta = chromium.meta // {
|
|
homepage = "https://chromedriver.chromium.org/";
|
|
description = "WebDriver server for running Selenium tests on Chrome";
|
|
longDescription = ''
|
|
WebDriver is an open source tool for automated testing of webapps across
|
|
many browsers. It provides capabilities for navigating to web pages, user
|
|
input, JavaScript execution, and more. ChromeDriver is a standalone
|
|
server that implements the W3C WebDriver standard.
|
|
'';
|
|
mainProgram = "chromedriver";
|
|
};
|
|
})
|