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"; }'

authored by

Robert Hensing and committed by
Franz Pletz
209f8b1a 9861064f

+3 -3
+1 -1
nixos/release-combined.nix
··· 2 2 # and nixos-14.04). The channel is updated every time the ‘tested’ job 3 3 # succeeds, and all other jobs have finished (they may fail). 4 4 5 - { nixpkgs ? { outPath = ./..; revCount = 56789; shortRev = "gfedcba"; } 5 + { nixpkgs ? { outPath = (import ../lib).cleanSource ./..; revCount = 56789; shortRev = "gfedcba"; } 6 6 , stableBranch ? false 7 7 , supportedSystems ? [ "x86_64-linux" ] 8 8 , limitedSupportedSystems ? [ "i686-linux" ]
+1 -1
nixos/release-small.nix
··· 2 2 # small subset of Nixpkgs, mostly useful for servers that need fast 3 3 # security updates. 4 4 5 - { nixpkgs ? { outPath = ./..; revCount = 56789; shortRev = "gfedcba"; } 5 + { nixpkgs ? { outPath = (import ../lib).cleanSource ./..; revCount = 56789; shortRev = "gfedcba"; } 6 6 , stableBranch ? false 7 7 , supportedSystems ? [ "x86_64-linux" ] # no i686-linux 8 8 }:
+1 -1
nixos/release.nix
··· 1 - { nixpkgs ? { outPath = ./..; revCount = 56789; shortRev = "gfedcba"; } 1 + { nixpkgs ? { outPath = (import ../lib).cleanSource ./..; revCount = 56789; shortRev = "gfedcba"; } 2 2 , stableBranch ? false 3 3 , supportedSystems ? [ "x86_64-linux" "aarch64-linux" ] 4 4 }: