File tree 3 files changed +21
-19
lines changed
3 files changed +21
-19
lines changed Original file line number Diff line number Diff line change 5
5
url = "github:ipetkov/crane" ;
6
6
inputs . nixpkgs . follows = "nixpkgs" ;
7
7
} ;
8
- gitignore = {
9
- url = "github:hercules-ci/gitignore.nix" ;
10
- inputs . nixpkgs . follows = "nixpkgs" ;
11
- } ;
8
+ nix-filter . url = "github:numtide/nix-filter" ;
12
9
fenix = {
13
10
url = "github:nix-community/fenix" ;
14
11
inputs . nixpkgs . follows = "nixpkgs" ;
Original file line number Diff line number Diff line change 5
5
craneLib = inputs . crane . lib . ${ system } . overrideToolchain rustToolchain . toolchain ;
6
6
cargoArtifacts = craneLib . buildDepsOnly commonArgs ;
7
7
commonArgs = {
8
- src = inputs . gitignore . lib . gitignoreSource ./.. ;
8
+ src = inputs . nix-filter . lib . filter {
9
+ root = ./.. ;
10
+ include = [
11
+ "nxy-common"
12
+ "nxy-cli"
13
+ "nxy-agent"
14
+ "nxy-server"
15
+ "Cargo.toml"
16
+ "Cargo.lock"
17
+ ] ;
18
+ } ;
9
19
10
20
# enable unstable tokio `tracing` feature
11
21
RUSTFLAGS = "--cfg tokio_unstable" ;
You can’t perform that action at this time.
0 commit comments