lix/tests/dependencies.builder0.sh
regnat dd7c2e0695 Make nix why-depends quieter by default
Unless `--precise` is passed, make `nix why-depends` only show the
dependencies between the store paths, without introspecting them to
find the actual references.

This also makes it ~3x faster
2022-01-19 14:24:14 +01:00

17 lines
274 B
Bash

[ "${input1: -2}" = /. ]
[ "${input2: -2}" = /. ]
mkdir $out
echo $(cat $input1/foo)$(cat $input2/bar) > $out/foobar
ln -s $input2 $out/reference-to-input-2
# Self-reference.
ln -s $out $out/self
# Executable.
echo program > $out/program
chmod +x $out/program
echo FOO