summary refs log tree commit diff
path: root/nixos/release.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-09-25 00:20:53 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-09-25 00:25:54 +0200
commit1cd727180eeb60e1c4f6ead96be614431624830f (patch)
treea22dbedc544a48bb7a0ab4ad023d5f76dab6e4e6 /nixos/release.nix
parent0a967b926871af2eb8a5098d85a519a4922c56e7 (diff)
downloadnixpkgs-1cd727180eeb60e1c4f6ead96be614431624830f.tar
nixpkgs-1cd727180eeb60e1c4f6ead96be614431624830f.tar.gz
nixpkgs-1cd727180eeb60e1c4f6ead96be614431624830f.tar.bz2
nixpkgs-1cd727180eeb60e1c4f6ead96be614431624830f.tar.lz
nixpkgs-1cd727180eeb60e1c4f6ead96be614431624830f.tar.xz
nixpkgs-1cd727180eeb60e1c4f6ead96be614431624830f.tar.zst
nixpkgs-1cd727180eeb60e1c4f6ead96be614431624830f.zip
Add all default NixOS packages to the channel
The job ‘dummy’ depends on the default contents of
‘environment.systemPackages’, thus ensuring that those packages all
end up in the channel.
Diffstat (limited to 'nixos/release.nix')
-rw-r--r--nixos/release.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/release.nix b/nixos/release.nix
index 0a12aa765be..7337ad7e3f4 100644
--- a/nixos/release.nix
+++ b/nixos/release.nix
@@ -186,6 +186,16 @@ in rec {
   );
 
 
+  # Ensure that all packages used by the minimal NixOS config end up in the channel.
+  dummy = forAllSystems (system: pkgs.runCommand "dummy"
+    { propagatedBuildInputs = (import lib/eval-config.nix {
+        inherit system;
+        modules = lib.singleton ({ config, pkgs, ... }: { });
+      }).config.environment.systemPackages;
+    }
+    "mkdir $out; fixupPhase");
+
+
   # Provide a tarball that can be unpacked into an SD card, and easily
   # boot that system from uboot (like for the sheevaplug).
   # The pc variant helps preparing the expression for the system tarball