Merge pull request #45324 from teto/libvirt_fix2

libvirt: darwin/linux fix dlopen("libjansson.so.4")
This commit is contained in:
Daiderd Jordan 2018-08-19 21:21:27 +02:00 committed by GitHub
commit 98579944cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"