default.nix: Exclude manual from source

This commit is contained in:
Zhaofeng Li 2021-11-17 22:21:00 -08:00
parent 1f738c8014
commit 1ac5fd0f9b

View file

@ -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 = {