summary refs log tree commit diff
path: root/pkgs/applications/virtualization/rkt
diff options
context:
space:
mode:
authorStefan Junker <mail@stefanjunker.de>2015-11-17 12:44:32 +0100
committerStefan Junker <mail@stefanjunker.de>2015-11-17 12:44:32 +0100
commit93e1f92781d1abeeef68249fa3242fff467316cf (patch)
tree29909dd9fc5343d51cd88837e8f970b43878c8c1 /pkgs/applications/virtualization/rkt
parent31f925b572a765a5719f1c2dfb6b8dd455e55787 (diff)
downloadnixpkgs-93e1f92781d1abeeef68249fa3242fff467316cf.tar
nixpkgs-93e1f92781d1abeeef68249fa3242fff467316cf.tar.gz
nixpkgs-93e1f92781d1abeeef68249fa3242fff467316cf.tar.bz2
nixpkgs-93e1f92781d1abeeef68249fa3242fff467316cf.tar.lz
nixpkgs-93e1f92781d1abeeef68249fa3242fff467316cf.tar.xz
nixpkgs-93e1f92781d1abeeef68249fa3242fff467316cf.tar.zst
nixpkgs-93e1f92781d1abeeef68249fa3242fff467316cf.zip
rkt: v0.10.0 -> 0.11.0
Also prepare to support multiple stage1 flavors.
The 'host' flavor would be preferred to reuse systemd components instead
of downloading/unpacking/processing a CoreOS PXE image.
Diffstat (limited to 'pkgs/applications/virtualization/rkt')
-rw-r--r--pkgs/applications/virtualization/rkt/default.nix13
1 files changed, 8 insertions, 5 deletions
diff --git a/pkgs/applications/virtualization/rkt/default.nix b/pkgs/applications/virtualization/rkt/default.nix
index 790afe75645..d3e0c4ff04d 100644
--- a/pkgs/applications/virtualization/rkt/default.nix
+++ b/pkgs/applications/virtualization/rkt/default.nix
@@ -4,10 +4,12 @@
 let
   coreosImageRelease = "794.1.0";
   coreosImageSystemdVersion = "222";
-  stage1Flavour = "coreos";
+
+  # TODO: track https://github.com/coreos/rkt/issues/1758 to allow "host" flavor.
+  stage1Flavours = [ "coreos" ];
 
 in stdenv.mkDerivation rec {
-  version = "0.10.0";
+  version = "0.11.0";
   name = "rkt-${version}";
   BUILDDIR="build-${name}";
 
@@ -15,7 +17,7 @@ in stdenv.mkDerivation rec {
       rev = "v${version}";
       owner = "coreos";
       repo = "rkt";
-      sha256 = "1d9n00wkzib4v5mfl46f2mqc8zfpv33kqixifmv8p4azqv78cbxn";
+      sha256 = "0qdg3m99viymran9n7rxywwbqr3xqgk8r7hsk6nj3liwqsx6agiv";
   };
 
   stage1BaseImage = fetchurl {
@@ -28,10 +30,11 @@ in stdenv.mkDerivation rec {
   preConfigure = ''
     ./autogen.sh
     configureFlagsArray=(
-      --with-stage1=${stage1Flavour}
-      --with-stage1-image-path=$out/stage1-${stage1Flavour}.aci
+      --with-stage1-flavors=${builtins.concatStringsSep "," stage1Flavours}
+      ${if lib.findFirst (p: p == "coreos") null stage1Flavours != null then "
       --with-coreos-local-pxe-image-path=${stage1BaseImage}
       --with-coreos-local-pxe-image-systemd-version=v${coreosImageSystemdVersion}
+      " else "" }
     );
   '';