From abc3faa2942f7fb95b478e256dc941797078231d Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Fri, 22 Jul 2016 17:47:32 -0700 Subject: [PATCH 1/2] rkt: 1.10.1 -> 1.11.0 --- pkgs/applications/virtualization/rkt/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/virtualization/rkt/default.nix b/pkgs/applications/virtualization/rkt/default.nix index 18e5d6dd4dbf..b2add237ae88 100644 --- a/pkgs/applications/virtualization/rkt/default.nix +++ b/pkgs/applications/virtualization/rkt/default.nix @@ -4,14 +4,14 @@ let # Always get the information from # https://github.com/coreos/rkt/blob/v${VERSION}/stage1/usr_from_coreos/coreos-common.mk - coreosImageRelease = "1068.0.0"; + coreosImageRelease = "1097.0.0"; coreosImageSystemdVersion = "229"; # TODO: track https://github.com/coreos/rkt/issues/1758 to allow "host" flavor. stage1Flavours = [ "coreos" "fly" ]; in stdenv.mkDerivation rec { - version = "1.10.1"; + version = "1.11.0"; name = "rkt-${version}"; BUILDDIR="build-${name}"; @@ -19,12 +19,12 @@ in stdenv.mkDerivation rec { rev = "v${version}"; owner = "coreos"; repo = "rkt"; - sha256 = "0hy6b0lyjsh0m1ca7hga31nybrbi9wpf8c59wbzvm1wlnqzsjkqi"; + sha256 = "05lm9grckbyjmv1292v00vw4h3nv6r7gmq04zhahcjyw7crx06sv"; }; stage1BaseImage = fetchurl { url = "http://alpha.release.core-os.net/amd64-usr/${coreosImageRelease}/coreos_production_pxe_image.cpio.gz"; - sha256 = "06jawmjkhrrw9hsk98w5j6pxci17d46mvzbj52pslakacw60pbpp"; + sha256 = "0dzp0vsjbipx8mcikrc5l7k3qjrg4y7h63r2nx6cycy7qhcmj85a"; }; buildInputs = [ From 04b30b2397439168af4854b4a7a9cd58c1e72b70 Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Fri, 22 Jul 2016 18:18:29 -0700 Subject: [PATCH 2/2] rkt: fix default stage1 location --- pkgs/applications/virtualization/rkt/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/virtualization/rkt/default.nix b/pkgs/applications/virtualization/rkt/default.nix index b2add237ae88..e33ce9361adf 100644 --- a/pkgs/applications/virtualization/rkt/default.nix +++ b/pkgs/applications/virtualization/rkt/default.nix @@ -9,6 +9,7 @@ let # TODO: track https://github.com/coreos/rkt/issues/1758 to allow "host" flavor. stage1Flavours = [ "coreos" "fly" ]; + stage1Dir = "lib/rkt/stage1-images"; in stdenv.mkDerivation rec { version = "1.11.0"; @@ -41,6 +42,7 @@ in stdenv.mkDerivation rec { --with-coreos-local-pxe-image-path=${stage1BaseImage} --with-coreos-local-pxe-image-systemd-version=v${coreosImageSystemdVersion} " else "" } + --with-stage1-default-location=$out/${stage1Dir}/stage1-${builtins.elemAt stage1Flavours 0}.aci ); ''; @@ -53,7 +55,7 @@ in stdenv.mkDerivation rec { cp -Rv $BUILDDIR/target/bin/rkt $out/bin mkdir -p $out/lib/rkt/stage1-images/ - cp -Rv $BUILDDIR/target/bin/stage1-*.aci $out/lib/rkt/stage1-images/ + cp -Rv $BUILDDIR/target/bin/stage1-*.aci $out/${stage1Dir}/ wrapProgram $out/bin/rkt \ --prefix LD_LIBRARY_PATH : ${systemd}/lib \