From 4c79c797d517d3ef5e341e3ba28110b6b1f074a3 Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 15 Jan 2021 00:51:45 +0100 Subject: [PATCH] default.nix: filterSource --- default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 438637f..9358eba 100644 --- a/default.nix +++ b/default.nix @@ -8,7 +8,9 @@ let rustPlatform.buildRustPackage rec { name = "${crate}"; - src = ./.; + src = builtins.filterSource (path: type: + baseNameOf path != "target" + ) ./.; inherit cargoSha256; nativeBuildInputs = [ cargo-xbuild ];