diff options
author | Alyssa Ross <hi@alyssa.is> | 2022-05-16 14:42:10 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2022-05-16 16:13:10 +0000 |
commit | 541bdd67bf406e9d54e36401fb85b08f8c6abba9 (patch) | |
tree | 728ec2a0a8869d3babac75f6028f962aa7e9d09a /scripts | |
parent | a9c192e00d17548f75e18465baf359813bc05e72 (diff) | |
download | spectrum-541bdd67bf406e9d54e36401fb85b08f8c6abba9.tar spectrum-541bdd67bf406e9d54e36401fb85b08f8c6abba9.tar.gz spectrum-541bdd67bf406e9d54e36401fb85b08f8c6abba9.tar.bz2 spectrum-541bdd67bf406e9d54e36401fb85b08f8c6abba9.tar.lz spectrum-541bdd67bf406e9d54e36401fb85b08f8c6abba9.tar.xz spectrum-541bdd67bf406e9d54e36401fb85b08f8c6abba9.tar.zst spectrum-541bdd67bf406e9d54e36401fb85b08f8c6abba9.zip |
Remove Nix files in copyPathToStore
Nix files shouldn't be considered part of the sources, and so they should be filtered out. This way, changes to them (that don't change their meaning) won't force rebuilds.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/default.nix b/scripts/default.nix index 4b9c31b..7995723 100644 --- a/scripts/default.nix +++ b/scripts/default.nix @@ -3,4 +3,11 @@ { pkgs ? import <nixpkgs> {} }: -pkgs.lib.cleanSource ./. +let + inherit (pkgs.lib) cleanSource cleanSourceWith hasSuffix; +in + +cleanSourceWith { + src = cleanSource ./.; + filter = name: _type: !(hasSuffix ".nix" name); +} |