From 1ac5fd0f9b6b6c55071d278939c996a8ce80d103 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Wed, 17 Nov 2021 22:21:00 -0800 Subject: [PATCH] default.nix: Exclude manual from source --- default.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/default.nix b/default.nix index b466714..79239a3 100644 --- a/default.nix +++ b/default.nix @@ -15,11 +15,8 @@ in rustPlatform.buildRustPackage { version = "0.1.0"; src = lib.cleanSourceWith { - filter = name: type: !(type == "directory" && baseNameOf name == "target"); - src = lib.cleanSourceWith { - filter = lib.cleanSourceFilter; - src = ./.; - }; + filter = name: type: !(type == "directory" && builtins.elem (baseNameOf name) [ "manual" ]); + src = pkgs.nix-gitignore.gitignoreSource [] ./.; }; cargoLock = {