* Inline the builder.
svn path=/nixos/trunk/; revision=12428
This commit is contained in:
parent
339839a134
commit
02be895820
@ -1,7 +0,0 @@
|
||||
source $stdenv/setup
|
||||
|
||||
ensureDir $out/bin
|
||||
|
||||
gcc -Wall -O2 -DWRAPPER_DIR=\"$wrapperDir\" $setuidWrapper -o $out/bin/setuid-wrapper
|
||||
|
||||
strip -s $out/bin/setuid-wrapper
|
@ -2,7 +2,9 @@
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "setuid-wrapper";
|
||||
builder = ./builder.sh;
|
||||
setuidWrapper = ./setuid-wrapper.c;
|
||||
inherit wrapperDir;
|
||||
buildCommand = ''
|
||||
ensureDir $out/bin
|
||||
gcc -Wall -O2 -DWRAPPER_DIR=\"${wrapperDir}\" ${./setuid-wrapper.c} -o $out/bin/setuid-wrapper
|
||||
strip -s $out/bin/setuid-wrapper
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user