@@ -1,56 +0,0 @@
1−{ stdenv, fetchFromGitHub, fontsConf, phantomjs2, python, nodePackages }:
2−
3−let version = "1.1.1";
4−
5−in stdenv.mkDerivation {
6−
7− pname = "casperjs";
8− inherit version;
9−
10− src = fetchFromGitHub {
11− owner = "casperjs";
12− repo = "casperjs";
13− rev = version;
14− sha256 = "187prrm728xpn0nx9kxfxa4fwd7w25z78nsxfk6a6kl7c5656jpz";
15− };
16−
17− buildInputs = [ phantomjs2 python nodePackages.eslint ];
18−
19− patchPhase = ''
20− substituteInPlace bin/casperjs --replace "/usr/bin/env python" "${python}/bin/python" \
21− --replace "'phantomjs'" "'${phantomjs2}/bin/phantomjs'"
22− '';
23−
24− dontBuild = true;
25−
26− doCheck = true;
27− checkPhase = ''
28− export FONTCONFIG_FILE=${fontsConf}
29− make test
30− '';
31−
32− installPhase = ''
33− cp -r . $out
34− '';
35−
36− meta = {
37−
38− description = ''
39− Navigation scripting & testing utility for PhantomJS and SlimerJS
40− '';
41−
42− longDescription = ''
43− CasperJS is a navigation scripting & testing utility for PhantomJS and
44− SlimerJS (still experimental). It eases the process of defining a full
45− navigation scenario and provides useful high-level functions, methods &
46− syntactic sugar for doing common tasks.
47− '';
48−
49− homepage = "http://casperjs.org";
50− license = stdenv.lib.licenses.mit;
51−
52− maintainers = [ stdenv.lib.maintainers.bluescreen303 ];
53− platforms = stdenv.lib.platforms.linux;
54− broken = true;
55− };
56−}