casperjs: test needs fontconfig

This commit is contained in:
Hoang Xuan Phu 2016-04-30 18:25:52 +08:00
parent bb7e3c6753
commit d950d6b786
2 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, phantomjs2, python, nodePackages }: { stdenv, fetchFromGitHub, fontsConf, phantomjs2, python, nodePackages }:
let version = "1.1.1"; let version = "1.1.1";
@ -23,7 +23,11 @@ in stdenv.mkDerivation rec {
dontBuild = true; dontBuild = true;
doCheck = true; doCheck = true;
checkTarget = "test"; checkPhase = ''
export FONTCONFIG_FILE=${fontsConf}
make test
'';
installPhase = '' installPhase = ''
mv $PWD $out mv $PWD $out

View File

@ -5811,7 +5811,9 @@ in
inherit rustc; inherit rustc;
}; };
casperjs = callPackage ../development/tools/casperjs { }; casperjs = callPackage ../development/tools/casperjs {
inherit (texFunctions) fontsConf;
};
cbrowser = callPackage ../development/tools/misc/cbrowser { }; cbrowser = callPackage ../development/tools/misc/cbrowser { };