1 if [ -e "$NIX_ATTRS_SH_FILE" ]; then .
"$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh
]; then . .attrs.sh
; fi
8 export NIX_ENFORCE_PURITY
=1
16 int main(int argc, char * * argv)
18 printf("Hello World!\n");
23 #gcc -I/nix/store/foo -I /nix/store/foo -I/usr/lib -I /usr/lib hello.c -o $out/bin/hello
24 gcc
-I`pwd` -L /nix
/store
/abcd
/lib
-isystem /usr
/lib hello.c
-o $out/bin
/hello
31 int main(int argc, char * * argv)
33 std::cout << "Hello World!\n";
34 std::cout << VALUE << std::endl;
39 g
++ hello2.cc
-o $out/bin
/hello2
-DVALUE="1 + 2 * 3"