libcap: use correct runtime shell
This commit is contained in:
parent
5c12a81336
commit
46440dae4e
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, lib, buildPackages, fetchurl, attr, perl
|
{ stdenv, lib, buildPackages, fetchurl, attr, perl, runtimeShell
|
||||||
, usePam ? !isStatic, pam ? null
|
, usePam ? !isStatic, pam ? null
|
||||||
, isStatic ? stdenv.hostPlatform.isStatic
|
, isStatic ? stdenv.hostPlatform.isStatic
|
||||||
}:
|
}:
|
||||||
@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
# use full path to bash
|
# use full path to bash
|
||||||
substituteInPlace progs/capsh.c --replace "/bin/bash" "${stdenv.shell}"
|
substituteInPlace progs/capsh.c --replace "/bin/bash" "${runtimeShell}"
|
||||||
|
|
||||||
# set prefixes
|
# set prefixes
|
||||||
substituteInPlace Make.Rules \
|
substituteInPlace Make.Rules \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user