From bb7e3c67537668e1b83006f8236545231ed0c6f0 Mon Sep 17 00:00:00 2001 From: Hoang Xuan Phu Date: Sat, 30 Apr 2016 17:13:00 +0800 Subject: [PATCH] casperjs: update to phantomjs2 --- pkgs/development/tools/casperjs/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/casperjs/default.nix b/pkgs/development/tools/casperjs/default.nix index 021bbac8b7c..387a367b327 100644 --- a/pkgs/development/tools/casperjs/default.nix +++ b/pkgs/development/tools/casperjs/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, phantomjs, python, nodePackages }: +{ stdenv, fetchFromGitHub, phantomjs2, python, nodePackages }: let version = "1.1.1"; @@ -13,11 +13,11 @@ in stdenv.mkDerivation rec { sha256 = "187prrm728xpn0nx9kxfxa4fwd7w25z78nsxfk6a6kl7c5656jpz"; }; - buildInputs = [ phantomjs python nodePackages.eslint ]; + buildInputs = [ phantomjs2 python nodePackages.eslint ]; patchPhase = '' substituteInPlace bin/casperjs --replace "/usr/bin/env python" "${python}/bin/python" \ - --replace "'phantomjs'" "'${phantomjs}/bin/phantomjs'" + --replace "'phantomjs'" "'${phantomjs2}/bin/phantomjs'" ''; dontBuild = true;