flake.nix: remove pointless filterSource

This commit is contained in:
Astro 2021-11-02 01:12:57 +01:00
parent 505d6ef103
commit c6b3f91bec
1 changed files with 1 additions and 7 deletions

View File

@ -25,13 +25,7 @@
# `nix build`
packages.heliwatch = naersk-lib.buildPackage {
pname = "heliwatch";
root = builtins.filterSource (path: type:
builtins.elem (baseNameOf path) [
"src"
"Cargo.toml"
"Cargo.lock"
] || baseNameOf (dirOf path) == "src"
) ./.;
root = ./.;
nativeBuildInputs = with pkgs; [ pkg-config ];
buildInputs = with pkgs; [ openssl ];
};