* Inline the builder.

svn path=/nixos/trunk/; revision=12428
This commit is contained in:
Eelco Dolstra 2008-07-25 13:33:42 +00:00
parent 339839a134
commit 02be895820
2 changed files with 5 additions and 10 deletions

View File

@ -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

View File

@ -2,7 +2,9 @@
stdenv.mkDerivation { stdenv.mkDerivation {
name = "setuid-wrapper"; name = "setuid-wrapper";
builder = ./builder.sh; buildCommand = ''
setuidWrapper = ./setuid-wrapper.c; ensureDir $out/bin
inherit wrapperDir; gcc -Wall -O2 -DWRAPPER_DIR=\"${wrapperDir}\" ${./setuid-wrapper.c} -o $out/bin/setuid-wrapper
strip -s $out/bin/setuid-wrapper
'';
} }