about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@viric.name>2015-05-09 20:19:34 +0000
committerLluís Batlle i Rossell <viric@viric.name>2015-05-09 20:19:34 +0000
commitd170c98d13a7b622c57c9b9f727a6bfec95a9181 (patch)
treeace38ed76a69de1a3f2a9ad717f19ccfe86715e0 /nixos
parentd8a2bb86c0e52bd5c41b2404ed3bbc7f80768842 (diff)
downloadnixlib-d170c98d13a7b622c57c9b9f727a6bfec95a9181.tar
nixlib-d170c98d13a7b622c57c9b9f727a6bfec95a9181.tar.gz
nixlib-d170c98d13a7b622c57c9b9f727a6bfec95a9181.tar.bz2
nixlib-d170c98d13a7b622c57c9b9f727a6bfec95a9181.tar.lz
nixlib-d170c98d13a7b622c57c9b9f727a6bfec95a9181.tar.xz
nixlib-d170c98d13a7b622c57c9b9f727a6bfec95a9181.tar.zst
nixlib-d170c98d13a7b622c57c9b9f727a6bfec95a9181.zip
Making nixos keep a ref to its stdenv
This will help a lot on ARM, where nix-collect-garbage erases gcc; then, any
change to a small system config file requires rebuilding gcc again.

I don't know why it does not happen on x86. Maybe it just pulls the gcc from
hydra, if garbage is collected.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/system/activation/top-level.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/system/activation/top-level.nix b/nixos/modules/system/activation/top-level.nix
index d7a1e205b4d4..52d76b03602f 100644
--- a/nixos/modules/system/activation/top-level.nix
+++ b/nixos/modules/system/activation/top-level.nix
@@ -64,6 +64,7 @@ let
       ln -s ${config.system.build.etc}/etc $out/etc
       ln -s ${config.system.path} $out/sw
       ln -s "$systemd" $out/systemd
+      ln -s ${pkgs.stdenv} $out/stdenv
 
       echo -n "$configurationName" > $out/configuration-name
       echo -n "systemd ${toString config.systemd.package.interfaceVersion}" > $out/init-interface-version