diff options
author | Robert Hensing <robert@roberthensing.nl> | 2018-02-01 10:34:03 +0100 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2018-02-09 18:32:26 +0000 |
commit | 209f8b1acd4c855d223d93f02caf3ccf6cec7e32 (patch) | |
tree | 666e216da70cb49ed3a367cc63ac94a10c3aecd4 /nixos/release-small.nix | |
parent | 9861064f35923250991a523bc8c274fad3a100d8 (diff) |
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"; }'
Diffstat (limited to 'nixos/release-small.nix')
-rw-r--r-- | nixos/release-small.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/release-small.nix b/nixos/release-small.nix index e9f3cfb4de53..24c448449c1f 100644 --- a/nixos/release-small.nix +++ b/nixos/release-small.nix @@ -2,7 +2,7 @@ # small subset of Nixpkgs, mostly useful for servers that need fast # security updates. -{ nixpkgs ? { outPath = ./..; revCount = 56789; shortRev = "gfedcba"; } +{ nixpkgs ? { outPath = (import ../lib).cleanSource ./..; revCount = 56789; shortRev = "gfedcba"; } , stableBranch ? false , supportedSystems ? [ "x86_64-linux" ] # no i686-linux }: |