libcap: already patch Make.Rules in prePatch

Make.Rules gets already included during compilation, so set paths before
invoking make. This fixes wrong paths in libcap.pc.
This commit is contained in:
Florian Klink 2017-10-22 13:58:28 +02:00
parent f906d6d18e
commit a505abc948

View File

@ -30,9 +30,8 @@ stdenv.mkDerivation rec {
# ensure capsh can find bash in $PATH
substituteInPlace progs/capsh.c --replace execve execvpe
'';
preInstall = ''
# set prefixes
substituteInPlace Make.Rules \
--replace 'prefix=/usr' "prefix=$lib" \
--replace 'exec_prefix=' "exec_prefix=$out" \