default.nix: filter source
This commit is contained in:
parent
0def9bc340
commit
64bcef4307
11
default.nix
11
default.nix
|
@ -9,7 +9,16 @@
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "greg-ng";
|
pname = "greg-ng";
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
src = lib.cleanSource ./.;
|
src = builtins.filterSource (path: type: let
|
||||||
|
baseName = baseNameOf (toString path);
|
||||||
|
in !(lib.any (b: b) [
|
||||||
|
(!(lib.cleanSourceFilter path type))
|
||||||
|
(baseName == "target" && type == "directory")
|
||||||
|
(baseName == "nix" && type == "directory")
|
||||||
|
(baseName == "flake.nix" && type == "regular")
|
||||||
|
(baseName == "flake.lock" && type == "regular")
|
||||||
|
])) ./.;
|
||||||
|
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue