summary refs log tree commit diff
path: root/release.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-08-26 14:06:00 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-08-26 14:06:00 +0200
commit3395e4398f32022e214e03a54321d199a23455eb (patch)
treeacc7e3a31fc81dfb314e980cb393f5ef53e29cc9 /release.nix
parent40c6f6252efb31b22d7a8bb2cf510faa0eac7936 (diff)
downloadnixpkgs-3395e4398f32022e214e03a54321d199a23455eb.tar
nixpkgs-3395e4398f32022e214e03a54321d199a23455eb.tar.gz
nixpkgs-3395e4398f32022e214e03a54321d199a23455eb.tar.bz2
nixpkgs-3395e4398f32022e214e03a54321d199a23455eb.tar.lz
nixpkgs-3395e4398f32022e214e03a54321d199a23455eb.tar.xz
nixpkgs-3395e4398f32022e214e03a54321d199a23455eb.tar.zst
nixpkgs-3395e4398f32022e214e03a54321d199a23455eb.zip
Build 32-bit VirtualBox image
Issue #200.
Diffstat (limited to 'release.nix')
-rw-r--r--release.nix15
1 files changed, 9 insertions, 6 deletions
diff --git a/release.nix b/release.nix
index bcbde0508da..a6b80be0ea6 100644
--- a/release.nix
+++ b/release.nix
@@ -175,8 +175,9 @@ in {
 
 
   # A bootable VirtualBox image.  FIXME: generate a OVF appliance?
-  vdi.x86_64-linux =
-    with import <nixpkgs> { system = "x86_64-linux"; };
+  vdi = pkgs.lib.genAttrs systems (system:
+
+    with import <nixpkgs> { inherit system; };
 
     let
 
@@ -190,19 +191,21 @@ in {
 
     in
       # Declare the VDI as a build product so that it shows up in Hydra.
-      runCommand "nixos-vdi-${config.system.nixosVersion}"
+      runCommand "nixos-vdi-${config.system.nixosVersion}-${system}"
         { meta = {
-            description = "NixOS VirtualBox disk image (64-bit)";
+            description = "NixOS VirtualBox disk image (${system})";
             maintainers = lib.maintainers.eelco;
           };
           vdi = config.system.build.virtualBoxImage;
         }
         ''
           mkdir -p $out/nix-support
-          fn=$out/nixos-${config.system.nixosVersion}.vdi.xz
+          fn=$out/nixos-${config.system.nixosVersion}-${system}.vdi.xz
           xz < $vdi/*.vdi > $fn
           echo "file vdi $fn" >> $out/nix-support/hydra-build-products
-        ''; # */
+        '' # */
+
+  );
 
 
   # Provide a tarball that can be unpacked into an SD card, and easily