Make term-test dependency optional

checkPhase still requires term-test

Closes #1
master
0xee 2019-12-29 10:51:55 +01:00
parent c767762ee0
commit 14526f5419
1 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,9 @@
{ stdenv, direnv, term-test }: { stdenv
, direnv
, term-test ? null
, doCheck ? true
}:
assert doCheck -> term-test != null;
stdenv.mkDerivation { stdenv.mkDerivation {
name = "direnv-cache"; name = "direnv-cache";
@ -8,6 +13,6 @@ stdenv.mkDerivation {
make install PREFIX=$out make install PREFIX=$out
''; '';
checkInputs = [ term-test ]; checkInputs = [ term-test ];
doCheck = true; inherit doCheck;
passthru = { direnvrc = ./direnvrc; }; passthru = { direnvrc = ./direnvrc; };
} }