mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 16:23:02 +00:00
dd7c2e0695
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
17 lines
274 B
Bash
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
|