Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 52 lines 1.8 kB view raw
1{ autoconf, fetchurl, makedepend, perl, python, stdenv, unzip, zip }: 2 3stdenv.mkDerivation rec { 4 name = "jscoverage-0.5.1"; 5 6 src = fetchurl { 7 url = "https://siliconforks.com/jscoverage/download/${name}.tar.bz2"; 8 sha256 = "c45f051cec18c10352f15f9844f47e37e8d121d5fd16680e2dd0f3b4420eb7f4"; 9 }; 10 11 patches = [ 12 ./jsfalse_to_null.patch 13 ]; 14 15 buildInputs = [ autoconf makedepend perl python unzip zip ]; 16 17 # It works without MOZ_FIX_LINK_PATHS, circumventing an impurity 18 # issue. Maybe we could kick js/ (spidermonkey) completely and 19 # instead use our spidermonkey via nix. 20 preConfigure = '' 21 sed -i 's/^MOZ_FIX_LINK_PATHS=.*$/MOZ_FIX_LINK_PATHS=""/' ./js/configure 22 ''; 23 24 meta = { 25 description = "Code coverage for JavaScript"; 26 27 longDescription = '' 28 JSCoverage is a tool that measures code coverage for JavaScript 29 programs. 30 31 Code coverage statistics show which lines of a program have been 32 executed (and which have been missed). This information is useful 33 for constructing comprehensive test suites (hence, it is often 34 called test coverage). 35 36 JSCoverage works by instrumenting the JavaScript code used in web 37 pages. Code coverage statistics are collected while the 38 instrumented JavaScript code is executed in a web browser. 39 40 JSCoverage supports the complete language syntax described in the 41 ECMAScript Language Specification (ECMA-262, 3rd 42 edition). JSCoverage works with any modern standards-compliant web 43 browser - including Internet Explorer (IE 6, 7, and 8), Firefox, 44 Opera, Safari, and Google Chrome - on Microsoft Windows and 45 GNU/Linux. 46 ''; 47 48 homepage = "http://siliconforks.com/jscoverage/"; 49 license = stdenv.lib.licenses.gpl2; 50 platforms = stdenv.lib.platforms.linux; 51 }; 52}