eb54864494
* in progs/capsh.c is the bash path hardcoded to '/bin/bash' * this fix set's the path to '/var/run/current-system/sw/bin/bash'
19 lines
327 B
Nix
19 lines
327 B
Nix
{stdenv, libcap}:
|
|
|
|
assert stdenv.isLinux;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libcap-progs-${libcap.version}";
|
|
|
|
inherit (libcap) src makeFlags;
|
|
|
|
buildInputs = [ libcap ];
|
|
|
|
patches = [ ./progs-bash-path.patch ];
|
|
|
|
preConfigure = "cd progs";
|
|
|
|
installFlags = "RAISE_SETFCAP=no";
|
|
|
|
postInstall = libcap.postinst name;
|
|
}
|