about summary refs log tree commit diff
path: root/pkgs/tools/admin/lxd
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2021-07-14 04:20:00 +0000
committerMario Rodas <marsam@users.noreply.github.com>2021-07-14 04:20:00 +0000
commit77898696a8522fe342d5936ba5c8d83642572da9 (patch)
tree76e8b638afa62fd12bbcf81fd4ed0b2de15b26c1 /pkgs/tools/admin/lxd
parent39682c11090ada5128322dec615e9cb5818550cc (diff)
lxd: 4.15 -> 4.16
Diffstat (limited to 'pkgs/tools/admin/lxd')
-rw-r--r--pkgs/tools/admin/lxd/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/tools/admin/lxd/default.nix b/pkgs/tools/admin/lxd/default.nix
index fde3e829cc1ed..ac831c9da482e 100644
--- a/pkgs/tools/admin/lxd/default.nix
+++ b/pkgs/tools/admin/lxd/default.nix
@@ -19,13 +19,13 @@ let
 in
 buildGoPackage rec {
   pname = "lxd";
-  version = "4.15";
+  version = "4.16";
 
   goPackagePath = "github.com/lxc/lxd";
 
   src = fetchurl {
     url = "https://linuxcontainers.org/downloads/lxd/lxd-${version}.tar.gz";
-    sha256 = "sha256-UXipGNWclBKgr0r0wav85Gnhp2SXkTvDFr9gKJWismU=";
+    sha256 = "1da9avmxs8sy92d9nrdgry2x685ral58zgf89yr88qxc0llbzq7r";
   };
 
   postPatch = ''
@@ -40,6 +40,9 @@ buildGoPackage rec {
     cp -r _dist/src/* ../../..
     popd
 
+    # required for go-dqlite. See: https://github.com/lxc/lxd/pull/8939
+    export CGO_LDFLAGS_ALLOW="(-Wl,-wrap,pthread_create)|(-Wl,-z,now)"
+
     makeFlagsArray+=("-tags libsqlite3")
   '';