flake.nix no longer discards templates folder
This commit is contained in:
parent
39424b0ac5
commit
3ad9eec2f4
1 changed files with 7 additions and 1 deletions
|
|
@ -12,8 +12,14 @@
|
|||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
craneLib = crane.mkLib pkgs;
|
||||
templateFilter = path: _type: builtins.match ".*templates/.*" path != null;
|
||||
src = pkgs.lib.cleanSourceWith {
|
||||
src = ./.;
|
||||
filter = path: type:
|
||||
(templateFilter path type) || (craneLib.filterCargoSources path type);
|
||||
};
|
||||
guestbook = craneLib.buildPackage {
|
||||
src = craneLib.cleanCargoSource ./.;
|
||||
inherit src;
|
||||
buildInputs = with pkgs; [ openssl ];
|
||||
nativeBuildInputs = with pkgs; [ pkg-config ];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue