3
0
Fork 0
forked from mirrors/nixpkgs

setuid-wrapper: Drop runtime dependency on setuid-wrapper.c

This commit is contained in:
Eelco Dolstra 2014-04-19 10:53:17 +02:00
parent a8aa9f3fd4
commit b80e6b27c7

View file

@ -9,10 +9,11 @@ let
setuidWrapper = pkgs.stdenv.mkDerivation {
name = "setuid-wrapper";
buildCommand = ''
ensureDir $out/bin
mkdir -p $out/bin
cp ${./setuid-wrapper.c} setuid-wrapper.c
gcc -Wall -O2 -DWRAPPER_DIR=\"${wrapperDir}\" \
${./setuid-wrapper.c} -o $out/bin/setuid-wrapper
strip -s $out/bin/setuid-wrapper
setuid-wrapper.c -o $out/bin/setuid-wrapper
strip -S $out/bin/setuid-wrapper
'';
};