1
0
Fork 0

default.nix: filterSource

This commit is contained in:
Astro 2021-01-15 00:51:45 +01:00
parent 966e43e14e
commit 4c79c797d5
1 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,9 @@ let
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
name = "${crate}"; name = "${crate}";
src = ./.; src = builtins.filterSource (path: type:
baseNameOf path != "target"
) ./.;
inherit cargoSha256; inherit cargoSha256;
nativeBuildInputs = [ cargo-xbuild ]; nativeBuildInputs = [ cargo-xbuild ];