libcap: use correct runtime shell

This commit is contained in:
Milan Pässler 2021-04-11 02:30:44 +02:00 committed by Milan
parent 5c12a81336
commit 46440dae4e

View file

@ -1,4 +1,4 @@
{ stdenv, lib, buildPackages, fetchurl, attr, perl
{ stdenv, lib, buildPackages, fetchurl, attr, perl, runtimeShell
, usePam ? !isStatic, pam ? null
, isStatic ? stdenv.hostPlatform.isStatic
}:
@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
prePatch = ''
# use full path to bash
substituteInPlace progs/capsh.c --replace "/bin/bash" "${stdenv.shell}"
substituteInPlace progs/capsh.c --replace "/bin/bash" "${runtimeShell}"
# set prefixes
substituteInPlace Make.Rules \