From bd1e99a5edc3c437ccbb719d576609f1836bd471 Mon Sep 17 00:00:00 2001 From: Zack Piper Date: Sun, 19 Jun 2016 19:02:07 +0000 Subject: [PATCH 1/2] lxd: 2.0.0.rc4 -> 2.0.2 --- pkgs/tools/admin/lxd/default.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/admin/lxd/default.nix b/pkgs/tools/admin/lxd/default.nix index c8717ad1f6cb..be7d534b3d6e 100644 --- a/pkgs/tools/admin/lxd/default.nix +++ b/pkgs/tools/admin/lxd/default.nix @@ -2,7 +2,7 @@ buildGoPackage rec { name = "lxd-${version}"; - version = "2.0.0.rc4"; + version = "2.0.2"; rev = "lxd-${version}"; goPackagePath = "github.com/lxc/lxd"; @@ -11,7 +11,7 @@ buildGoPackage rec { inherit rev; owner = "lxc"; repo = "lxd"; - sha256 = "1rpyyj6d38d9kmb47dcmy1x41fiacj384yx01yslsrj2l6qxcdjn"; + sha256 = "1rs9g1snjymg6pjz5bj77zk5wbs0w8xmrfxzqs32w6zr1dxhf9hs"; }; goDeps = ./deps.json; @@ -19,10 +19,6 @@ buildGoPackage rec { nativeBuildInputs = [ pkgconfig ]; buildInputs = [ lxc ]; - postInstall = '' - cp go/src/$goPackagePath/scripts/lxd-images $bin/bin - ''; - meta = with stdenv.lib; { description = "Daemon based on liblxc offering a REST API to manage containers"; homepage = https://github.com/lxc/lxd; From f36c8f5f54ac2c98dc447bfebe0f224600b882e7 Mon Sep 17 00:00:00 2001 From: Zack Piper Date: Sun, 19 Jun 2016 20:30:36 +0100 Subject: [PATCH 2/2] lxd: `pkg.lxd` does not point to the binaries `pkg.lxd.bin` does --- nixos/modules/virtualisation/lxd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/virtualisation/lxd.nix b/nixos/modules/virtualisation/lxd.nix index 845f14352f3d..9d76b890872a 100644 --- a/nixos/modules/virtualisation/lxd.nix +++ b/nixos/modules/virtualisation/lxd.nix @@ -47,7 +47,7 @@ in # TODO(wkennington): Add lvm2 and thin-provisioning-tools path = with pkgs; [ acl rsync gnutar xz btrfs-progs ]; - serviceConfig.ExecStart = "@${pkgs.lxd}/bin/lxd lxd --syslog --group lxd"; + serviceConfig.ExecStart = "@${pkgs.lxd.bin}/bin/lxd lxd --syslog --group lxd"; serviceConfig.Type = "simple"; serviceConfig.KillMode = "process"; # when stopping, leave the containers alone };