Skip to content

Commit

Permalink
flake.nix: give better names to check derivations and make output empty
Browse files Browse the repository at this point in the history
  • Loading branch information
zombiezen committed Dec 4, 2023
1 parent 0006dce commit 3134253
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,15 @@

inherit (pkgs.lib.attrsets) mapAttrs' nameValuePair optionalAttrs;

mkCheck = git: self.packages.${system}.default.override {
mkCheck = git: (self.packages.${system}.default.override {
inherit git;
doCheck = true;
}).overrideAttrs {
name = "gg-check-${git.name}";
postInstall = ''
rm -rf "$out"
touch "$out"
'';
};

gitChecks = mapAttrs' (name: git: nameValuePair ("with_" + name) (mkCheck git)) gitPackages;
Expand Down

0 comments on commit 3134253

Please sign in to comment.