mirror of
https://github.com/nix-community/nurl.git
synced 2024-11-04 00:37:05 +03:00
filter source
This commit is contained in:
parent
da893aebcb
commit
d82660ecdb
13
flake.nix
13
flake.nix
@ -5,8 +5,9 @@
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
inherit (builtins) path;
|
||||
inherit (nixpkgs.lib)
|
||||
genAttrs importTOML licenses makeBinPath maintainers optionals;
|
||||
genAttrs importTOML licenses makeBinPath maintainers optionals sourceByRegex;
|
||||
inherit (importTOML (self + "/Cargo.toml")) package;
|
||||
|
||||
forEachSystem = genAttrs [
|
||||
@ -35,9 +36,15 @@
|
||||
pname = "nurl";
|
||||
inherit (package) version;
|
||||
|
||||
src = self;
|
||||
src = sourceByRegex self [
|
||||
"(src|tests)(/.*)?"
|
||||
"Cargo\\.(toml|lock)"
|
||||
"build.rs"
|
||||
];
|
||||
|
||||
cargoLock.lockFile = self + "/Cargo.lock";
|
||||
cargoLock.lockFile = path {
|
||||
path = self + "/Cargo.lock";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
|
Loading…
Reference in New Issue
Block a user