mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
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.
This commit is contained in:
parent
8395f9aa85
commit
929a53f281
1 changed files with 3 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue