From ec3a49b987d08a1a39bdaab42d6b68f81c2f43bb Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 10 Nov 2024 18:39:37 +0100 Subject: [PATCH] pkgs/test/simple: remove unused builder.sh Oversight in a133a74c8905c58721a2ae129c02c264bf6b3b09. --- pkgs/test/simple/builder.sh | 43 ------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 pkgs/test/simple/builder.sh diff --git a/pkgs/test/simple/builder.sh b/pkgs/test/simple/builder.sh deleted file mode 100644 index 0b09a109bead..000000000000 --- a/pkgs/test/simple/builder.sh +++ /dev/null @@ -1,43 +0,0 @@ -if [ -e "$NIX_ATTRS_SH_FILE" ]; then . "$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh ]; then . .attrs.sh; fi -set -x - -export NIX_DEBUG=1 - -source $stdenv/setup - -export NIX_ENFORCE_PURITY=1 - -mkdir $out -mkdir $out/bin - -cat > hello.c < - -int main(int argc, char * * argv) -{ - printf("Hello World!\n"); - return 0; -} -EOF - -#gcc -I/nix/store/foo -I /nix/store/foo -I/usr/lib -I /usr/lib hello.c -o $out/bin/hello -gcc -I`pwd` -L /nix/store/abcd/lib -isystem /usr/lib hello.c -o $out/bin/hello - -$out/bin/hello - -cat > hello2.cc < - -int main(int argc, char * * argv) -{ - std::cout << "Hello World!\n"; - std::cout << VALUE << std::endl; - return 0; -} -EOF - -g++ hello2.cc -o $out/bin/hello2 -DVALUE="1 + 2 * 3" - -$out/bin/hello2 - -ld -v