i3: Set checkPhase only when on Linux.

This commit is contained in:
Marcus Crestani 2015-01-08 21:31:14 +01:00 committed by Marcus Crestani
parent ecc7d50e26
commit 8e2fb7c816

View File

@ -24,7 +24,8 @@ stdenv.mkDerivation rec {
doCheck = stdenv.system == "x86_64-linux";
checkPhase = ''
checkPhase = stdenv.lib.optionalString (stdenv.system == "x86_64-linux")
''
ln -sf "${xdummy}/bin/xdummy" testcases/Xdummy
(cd testcases && perl complete-run.pl -p 1)
! grep -q '^not ok' testcases/latest/complete-run.log