Skip to content

Commit 209f8b1

Browse files
roberthfpletz
authored andcommitted
nixos/release*.nix: Clean nixpkgs sources by default
Currently, when building NixOS from a git clone, Nix has to copy the entire repo at >1GB into the store by default. That is not necessary and causes a dumping large path message. If you need the old behaviour for some reason, you will have to specify it by passing the path to your repo explicitly as the nixpkgs argument like this: --arg nixpkgs '{outPath = ./.; revCount = 56789; shortRev = "gfedcba"; }'
1 parent 9861064 commit 209f8b1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

nixos/release-combined.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# and nixos-14.04). The channel is updated every time the ‘tested’ job
33
# succeeds, and all other jobs have finished (they may fail).
44

5-
{ nixpkgs ? { outPath = ./..; revCount = 56789; shortRev = "gfedcba"; }
5+
{ nixpkgs ? { outPath = (import ../lib).cleanSource ./..; revCount = 56789; shortRev = "gfedcba"; }
66
, stableBranch ? false
77
, supportedSystems ? [ "x86_64-linux" ]
88
, limitedSupportedSystems ? [ "i686-linux" ]

nixos/release-small.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# small subset of Nixpkgs, mostly useful for servers that need fast
33
# security updates.
44

5-
{ nixpkgs ? { outPath = ./..; revCount = 56789; shortRev = "gfedcba"; }
5+
{ nixpkgs ? { outPath = (import ../lib).cleanSource ./..; revCount = 56789; shortRev = "gfedcba"; }
66
, stableBranch ? false
77
, supportedSystems ? [ "x86_64-linux" ] # no i686-linux
88
}:

nixos/release.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ nixpkgs ? { outPath = ./..; revCount = 56789; shortRev = "gfedcba"; }
1+
{ nixpkgs ? { outPath = (import ../lib).cleanSource ./..; revCount = 56789; shortRev = "gfedcba"; }
22
, stableBranch ? false
33
, supportedSystems ? [ "x86_64-linux" "aarch64-linux" ]
44
}:

0 commit comments

Comments
 (0)