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"; version = "0.1.0";
src = lib.cleanSourceWith { src = lib.cleanSourceWith {
filter = name: type: !(type == "directory" && baseNameOf name == "target"); filter = name: type: !(type == "directory" && builtins.elem (baseNameOf name) [ "manual" ]);
src = lib.cleanSourceWith { src = pkgs.nix-gitignore.gitignoreSource [] ./.;
filter = lib.cleanSourceFilter;
src = ./.;
};
}; };
cargoLock = { cargoLock = {