2006-11-28 17:34:27 +00:00
|
|
|
{stdenv, wrapperDir}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "setuid-wrapper";
|
2008-07-25 14:33:42 +01:00
|
|
|
buildCommand = ''
|
|
|
|
ensureDir $out/bin
|
|
|
|
gcc -Wall -O2 -DWRAPPER_DIR=\"${wrapperDir}\" ${./setuid-wrapper.c} -o $out/bin/setuid-wrapper
|
|
|
|
strip -s $out/bin/setuid-wrapper
|
|
|
|
'';
|
2007-11-09 18:49:45 +00:00
|
|
|
}
|