nixpkgs/pkgs/os-specific/linux/libcap/progs.nix
j-keck eb54864494 libcap_progs: fix bash path
* 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'
2015-02-02 22:07:23 +01:00

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;
}