From d950d6b786b90d84d460aedbdb76fbb664419057 Mon Sep 17 00:00:00 2001 From: Hoang Xuan Phu Date: Sat, 30 Apr 2016 18:25:52 +0800 Subject: [PATCH] casperjs: test needs fontconfig --- pkgs/development/tools/casperjs/default.nix | 8 ++++++-- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/casperjs/default.nix b/pkgs/development/tools/casperjs/default.nix index 387a367b3279..a4b9f23c5eb9 100644 --- a/pkgs/development/tools/casperjs/default.nix +++ b/pkgs/development/tools/casperjs/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, phantomjs2, python, nodePackages }: +{ stdenv, fetchFromGitHub, fontsConf, phantomjs2, python, nodePackages }: let version = "1.1.1"; @@ -23,7 +23,11 @@ in stdenv.mkDerivation rec { dontBuild = true; doCheck = true; - checkTarget = "test"; + checkPhase = '' + export FONTCONFIG_FILE=${fontsConf} + make test + ''; + installPhase = '' mv $PWD $out diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 603e537a5e2e..7fea61dbf7d0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5811,7 +5811,9 @@ in inherit rustc; }; - casperjs = callPackage ../development/tools/casperjs { }; + casperjs = callPackage ../development/tools/casperjs { + inherit (texFunctions) fontsConf; + }; cbrowser = callPackage ../development/tools/misc/cbrowser { };