diff options
Diffstat (limited to '')
-rw-r--r-- | nix/package.nix | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/nix/package.nix b/nix/package.nix index ef00195..b974ea2 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -18,18 +18,17 @@ rustPlatform.buildRustPackage { version = "1.0.0"; src = lib.cleanSourceWith { - src = lib.cleanSource ./.; + src = lib.cleanSource ./..; filter = name: type: (type == "directory") - || (builtins.elem (builtins.baseNameOf name) ["Cargo.toml" "Cargo.lock" "style.css"]) - || (lib.strings.hasSuffix ".rs" (builtins.baseNameOf name)) - || (lib.strings.hasSuffix ".html" (builtins.baseNameOf name)); + || (builtins.elem (builtins.baseNameOf name) ["Cargo.toml" "Cargo.lock" "style.css" "search.png"]) + || (lib.strings.hasSuffix ".rs" (builtins.baseNameOf name)); }; doCheck = true; cargoLock = { - lockFile = ./Cargo.lock; + lockFile = ../Cargo.lock; }; meta = { |