mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
22cd1fb65f
Co-Authored-By: Silvan Mosberger <contact@infinisil.com>
33 lines
737 B
Nix
33 lines
737 B
Nix
{
|
|
haskell,
|
|
haskellPackages,
|
|
lib,
|
|
runCommand,
|
|
nixfmt-rfc-style,
|
|
}:
|
|
let
|
|
inherit (haskell.lib.compose) overrideCabal justStaticExecutables;
|
|
|
|
overrides = {
|
|
version = "unstable-${lib.fileContents ./date.txt}";
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
maintainers = lib.teams.formatter.members;
|
|
|
|
# These tests can be run with the following command.
|
|
#
|
|
# $ nix-build -A nixfmt-rfc-style.tests
|
|
passthru.tests =
|
|
runCommand "nixfmt-rfc-style-tests" { nativeBuildInputs = [ nixfmt-rfc-style ]; }
|
|
''
|
|
nixfmt --version > $out
|
|
'';
|
|
};
|
|
raw-pkg = haskellPackages.callPackage ./generated-package.nix { };
|
|
in
|
|
lib.pipe raw-pkg [
|
|
(overrideCabal overrides)
|
|
justStaticExecutables
|
|
]
|