1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-10 04:43:53 +02:00

Add a simple test for nix why-depends

This commit is contained in:
regnat 2022-01-18 16:54:53 +01:00
parent f6f0bcf11f
commit 2ad2678c0b
3 changed files with 17 additions and 1 deletions

13
tests/why-depends.sh Normal file
View file

@ -0,0 +1,13 @@
source common.sh
clearStore
cp ./dependencies.nix ./dependencies.builder0.sh ./config.nix $TEST_HOME
cd $TEST_HOME
nix-build ./dependencies.nix -A input0_drv -o dep
nix-build ./dependencies.nix -o toplevel
nix why-depends ./toplevel ./dep |
grep input-2