From d170c98d13a7b622c57c9b9f727a6bfec95a9181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sat, 9 May 2015 20:19:34 +0000 Subject: [PATCH] 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. --- nixos/modules/system/activation/top-level.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/system/activation/top-level.nix b/nixos/modules/system/activation/top-level.nix index d7a1e205b4d..52d76b03602 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