nixpkgs/helpers/setuid/default.nix
Eelco Dolstra 02be895820 * Inline the builder.
svn path=/nixos/trunk/; revision=12428
2008-07-25 13:33:42 +00:00

11 lines
259 B
Nix

{stdenv, wrapperDir}:
stdenv.mkDerivation {
name = "setuid-wrapper";
buildCommand = ''
ensureDir $out/bin
gcc -Wall -O2 -DWRAPPER_DIR=\"${wrapperDir}\" ${./setuid-wrapper.c} -o $out/bin/setuid-wrapper
strip -s $out/bin/setuid-wrapper
'';
}