2006-11-28 18:34:27 +01:00
|
|
|
{stdenv, wrapperDir}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "setuid-wrapper";
|
2008-07-25 15:33:42 +02: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 19:49:45 +01:00
|
|
|
}
|