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:
parent
f906d6d18e
commit
a505abc948
@ -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" \
|
||||
|
Loading…
Reference in New Issue
Block a user