1
1
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-08-16 08:00:34 +03:00

system-packages: fix test

This commit is contained in:
Daiderd Jordan 2019-01-18 23:36:15 +01:00
parent a1c56d5492
commit e812130e5d
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -8,14 +8,14 @@ let
in in
{ {
environment.systemPackages = [ pkgs.hello ]; environment.systemPackages = [ hello ];
test = '' test = ''
echo checking hello binary in /sw/bin >&2 echo checking hello binary in /sw/bin >&2
test -e ${config.out}/sw/bin/hello 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 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
''; '';
} }