mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
system-packages: fix test
This commit is contained in:
parent
a1c56d5492
commit
e812130e5d
1 changed files with 3 additions and 3 deletions
|
@ -8,14 +8,14 @@ let
|
|||
in
|
||||
|
||||
{
|
||||
environment.systemPackages = [ pkgs.hello ];
|
||||
environment.systemPackages = [ hello ];
|
||||
|
||||
test = ''
|
||||
echo checking hello binary in /sw/bin >&2
|
||||
test -e ${config.out}/sw/bin/hello
|
||||
test "$(readlink -f ${config.out}/sw/bin/hello)" = "${pkgs.hello}/bin/hello"
|
||||
test "$(readlink -f ${config.out}/sw/bin/hello)" = "${hello}/bin/hello"
|
||||
|
||||
echo checking for unexpected paths in /sw/bin >&2
|
||||
! test -e ${config.out}/sw/lib/libhello.dylib
|
||||
test -e ${config.out}/sw/lib/libhello.dylib && return
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue