nixpkgs/pkgs/by-name/ni/nixfmt/package.nix
Silvan Mosberger b3bc1e31d0 nixfmt[-rfc-style]: unstable -> 1.0.0
Also:
- Updates the update script to use stable versions going forward
- Make pkgs.nixfmt the -rfc-style version and remove the warning
- Create a (delayed) warning for the -rfc-style version to encourage
  switching to pkgs.nixfmt in a couple releases
- Add a release note for the above
2025-07-14 16:28:35 +02:00

29 lines
607 B
Nix

{
haskell,
haskellPackages,
lib,
runCommand,
nixfmt,
}:
let
inherit (haskell.lib.compose) overrideCabal justStaticExecutables;
overrides = {
passthru.updateScript = ./update.sh;
teams = [ lib.teams.formatter ];
# These tests can be run with the following command.
#
# $ nix-build -A nixfmt.tests
passthru.tests = runCommand "nixfmt-tests" { nativeBuildInputs = [ nixfmt ]; } ''
nixfmt --version > $out
'';
};
raw-pkg = haskellPackages.callPackage ./generated-package.nix { };
in
lib.pipe raw-pkg [
(overrideCabal overrides)
justStaticExecutables
]