From 4365e6363d8b6f24278b8300a3f2f895e0630a59 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 30 Apr 2022 04:20:00 +0000 Subject: [PATCH] lxd: 5.0.0 -> 5.1 https://github.com/lxc/lxd/releases/tag/lxd-5.1 --- pkgs/tools/admin/lxd/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/admin/lxd/default.nix b/pkgs/tools/admin/lxd/default.nix index 3fcb68a5b66f..48cb73be8310 100644 --- a/pkgs/tools/admin/lxd/default.nix +++ b/pkgs/tools/admin/lxd/default.nix @@ -11,13 +11,13 @@ buildGo118Package rec { pname = "lxd"; - version = "5.0.0"; + version = "5.1"; goPackagePath = "github.com/lxc/lxd"; src = fetchurl { url = "https://linuxcontainers.org/downloads/lxd/lxd-${version}.tar.gz"; - sha256 = "sha256-qZt+37UsgZWy3kmIhE0y1zvmQm9s/yhAglBReyOP3vk="; + sha256 = "sha256-MZ9Ok1BuIUTtqigLAYX7N8Q3TPfXRopeXIwbZ4GJJQo="; }; postPatch = '' @@ -25,6 +25,8 @@ buildGo118Package rec { --replace "/usr/share/misc/usb.ids" "${hwdata}/share/hwdata/usb.ids" ''; + excludedPackages = [ "test" "lxd/db/generate" ]; + preBuild = '' # required for go-dqlite. See: https://github.com/lxc/lxd/pull/8939 export CGO_LDFLAGS_ALLOW="(-Wl,-wrap,pthread_create)|(-Wl,-z,now)" @@ -33,9 +35,6 @@ buildGo118Package rec { ''; postInstall = '' - # test binaries, code generation - rm $out/bin/{deps,macaroon-identity,generate} - wrapProgram $out/bin/lxd --prefix PATH : ${lib.makeBinPath ( [ iptables ] ++ [ acl rsync gnutar xz btrfs-progs gzip dnsmasq squashfsTools iproute2 bash criu attr ]