diff options
author | Matthieu Coudron <mattator@gmail.com> | 2018-08-19 22:03:30 +0900 |
---|---|---|
committer | Matthieu Coudron <mattator@gmail.com> | 2018-08-19 22:33:06 +0900 |
commit | 929a53f2814982247f34fa296f6c1dd0435caf20 (patch) | |
tree | 73175e8d4c0183b84eeeba10149a65b853831d3c /pkgs/development/libraries/libvirt | |
parent | 8395f9aa85e621c076334a67d814de8221ce7983 (diff) |
libvirt: fix dlopen("libjansson.so.4")
Commit 59027e2 broke libvirt broke libvirt/nixops on linux. Use ${targetPlatform.extensions.sharedLibrary} to accomodate both linux and darwin.
Diffstat (limited to 'pkgs/development/libraries/libvirt')
-rw-r--r-- | pkgs/development/libraries/libvirt/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libvirt/default.nix b/pkgs/development/libraries/libvirt/default.nix index 63f11daad2884..4b104a04c15d0 100644 --- a/pkgs/development/libraries/libvirt/default.nix +++ b/pkgs/development/libraries/libvirt/default.nix @@ -60,7 +60,9 @@ in stdenv.mkDerivation rec { --replace 'lxc_path,' '"/run/libvirt/nix-emulators/libvirt_lxc",' patchShebangs . # fixes /usr/bin/python references - ''; + substituteInPlace src/util/virjsoncompat.c --replace \ + '"libjansson.so.4"' '"${jansson}/lib/libjansson${stdenv.targetPlatform.extensions.sharedLibrary}"' + ''; configureFlags = [ "--localstatedir=/var" |