Merge pull request #141771 from Luflosi/improve-swtpm-for-libvirt
This commit is contained in:
commit
e673b894c5
1 changed files with 13 additions and 0 deletions
|
@ -42,8 +42,21 @@ stdenv.mkDerivation rec {
|
|||
|
||||
configureFlags = [
|
||||
"--with-cuse"
|
||||
"--localstatedir=/var"
|
||||
];
|
||||
|
||||
prePatch = ''
|
||||
# Makefile tries to create the directory /var/lib/swtpm-localcafor, which fails
|
||||
substituteInPlace samples/Makefile.am \
|
||||
--replace 'install-data-local:' 'do-not-execute:'
|
||||
|
||||
# Use the correct path to the certtool binary
|
||||
# instead of relying on it being in the environment
|
||||
substituteInPlace samples/swtpm_localca.c --replace \
|
||||
'# define CERTTOOL_NAME "certtool"' \
|
||||
'# define CERTTOOL_NAME "${gnutls}/bin/certtool"'
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
outputs = [ "out" "man" ];
|
||||
|
|
Loading…
Reference in a new issue