mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
Fix 'nix-instantiate --find-file' and add a test
Reported by @lheckemann.
This commit is contained in:
parent
511590976c
commit
12dd8d49c6
2 changed files with 7 additions and 1 deletions
|
@ -9,3 +9,6 @@ nix-instantiate --eval -E '<by-relative-path/simple.nix>' --restrict-eval
|
|||
|
||||
# Should ideally also test this, but there’s no pure way to do it, so just trust me that it works
|
||||
# nix-instantiate --eval -E '<nixpkgs>' -I nixpkgs=channel:nixos-unstable --restrict-eval
|
||||
|
||||
[[ $(nix-instantiate --find-file by-absolute-path/simple.nix) = $PWD/simple.nix ]]
|
||||
[[ $(nix-instantiate --find-file by-relative-path/simple.nix) = $PWD/simple.nix ]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue