1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 19:23:54 +02:00

* A test for multiple and/or failing substitutes.

This commit is contained in:
Eelco Dolstra 2004-06-24 12:56:24 +00:00
parent 66c7f34759
commit 8052aef486
5 changed files with 80 additions and 5 deletions

View file

@ -0,0 +1,22 @@
# Set a PATH (!!! impure).
export PATH=/bin:/usr/bin:$PATH
mkdir $out
cat > $out/substituter <<EOF
#! /bin/sh -ex
echo \$*
case \$* in
*aaaa*)
exit 1
;;
*)
mkdir \$1
echo Foo \$3 \$4 > \$1/hello
;;
esac
EOF
chmod +x $out/substituter