Use the Nixpkgs fileset library to filter source

Now I can change Nix files without causing rebuilds.
This commit is contained in:
John Ericson
2024-01-25 12:21:13 -05:00
parent d6d6d1b649
commit 4bbc7b8f75
2 changed files with 24 additions and 7 deletions

View File

@ -10,7 +10,7 @@
# 23.11 and has `lib.fileset`.
inputs.nixpkgs-for-fileset.url = "github:NixOS/nixpkgs/nixos-23.11";
outputs = { self, nixpkgs, nix }:
outputs = { self, nixpkgs, nix, nixpkgs-for-fileset }:
let
systems = [ "x86_64-linux" "aarch64-linux" ];
forEachSystem = nixpkgs.lib.genAttrs systems;
@ -65,7 +65,8 @@
};
hydra = final.callPackage ./package.nix {
src = self;
inherit (nixpkgs-for-fileset.lib) fileset;
rawSrc = self;
};
};