flake.nix: filterSource

This commit is contained in:
Astro 2023-08-08 23:23:24 +02:00
parent c18a299afc
commit 104a62d781
1 changed files with 8 additions and 4 deletions

View File

@ -65,13 +65,17 @@
rustc = rust;
};
src = builtins.filterSource (path: type:
builtins.match ".*\.nix" path == null
) ./.;
in rec {
packages.default = self.packages.${system}.caveman-hunter;
packages.caveman-hunter = naersk-lib.buildPackage rec {
pname = "caveman-hunter";
version = self.lastModifiedDate;
src = ./.;
inherit src;
targets = [ pname ];
nativeBuildInputs = with pkgs; [ pkg-config ];
buildInputs = with pkgs; [ openssl systemd ];
@ -79,7 +83,7 @@
packages.caveman-butcher = naersk-lib.buildPackage rec {
pname = "caveman-butcher";
version = self.lastModifiedDate;
src = ./.;
inherit src;
targets = [ pname ];
nativeBuildInputs = with pkgs; [ pkg-config ];
buildInputs = with pkgs; [ openssl systemd ];
@ -87,7 +91,7 @@
packages.caveman-gatherer = naersk-lib.buildPackage rec {
pname = "caveman-gatherer";
version = self.lastModifiedDate;
src = ./.;
inherit src;
targets = [ pname ];
nativeBuildInputs = with pkgs; [ pkg-config ];
buildInputs = with pkgs; [ openssl systemd ];
@ -99,7 +103,7 @@
packages.caveman-smokestack = naersk-lib.buildPackage rec {
pname = "caveman-smokestack";
version = self.lastModifiedDate;
src = ./.;
inherit src;
targets = [ pname ];
nativeBuildInputs = with pkgs; [ pkg-config ];
buildInputs = with pkgs; [ openssl systemd ];