We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fec8ca commit c682381Copy full SHA for c682381
1 file changed
utils.nix
@@ -9,11 +9,26 @@
9
}:
10
11
rec {
12
- # this removes the org scoping
+ # This removes the org scoping
13
basename = builtins.baseNameOf node2nixDev.packageName;
14
- src = nix-gitignore.gitignoreSource [".git" "/*.nix"] ./.;
+ # Filter source to only what's necessary for building
15
+ src = nix-gitignore.gitignoreSource [
16
+ # The `.git` itself should be ignored
17
+ ".git"
18
+ # Hidden files
19
+ "/.*"
20
+ # Nix files
21
+ "/*.nix"
22
+ # Benchmarks
23
+ "/benches"
24
+ # Docs
25
+ "/docs"
26
+ # Tests
27
+ "/tests"
28
+ "/jest.config.js"
29
+ ] ./.;
30
nodeVersion = builtins.elemAt (lib.versions.splitVersion nodejs.version) 0;
- # custom node2nix directly from GitHub
31
+ # Custom node2nix directly from GitHub
32
node2nixSrc = fetchFromGitHub {
33
owner = "svanderburg";
34
repo = "node2nix";
0 commit comments