2021-05-11 14:07:47 +01:00
|
|
|
{ autoconf, fetchurl, makedepend, perl, python3, lib, stdenv, zip }:
|
2011-06-21 08:28:30 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-20 11:34:30 +01:00
|
|
|
pname = "jscoverage";
|
|
|
|
version = "0.5.1";
|
2011-06-21 08:28:30 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-20 11:34:30 +01:00
|
|
|
url = "https://siliconforks.com/${pname}/download/${pname}-${version}.tar.bz2";
|
2011-06-21 08:28:30 +01:00
|
|
|
sha256 = "c45f051cec18c10352f15f9844f47e37e8d121d5fd16680e2dd0f3b4420eb7f4";
|
|
|
|
};
|
|
|
|
|
2017-09-16 12:20:38 +01:00
|
|
|
patches = [
|
|
|
|
./jsfalse_to_null.patch
|
|
|
|
];
|
|
|
|
|
2021-05-11 14:07:47 +01:00
|
|
|
nativeBuildInputs = [ perl python3 zip ];
|
2021-03-26 09:07:25 +00:00
|
|
|
|
|
|
|
strictDeps = true;
|
2011-06-21 08:28:30 +01:00
|
|
|
|
|
|
|
# It works without MOZ_FIX_LINK_PATHS, circumventing an impurity
|
|
|
|
# issue. Maybe we could kick js/ (spidermonkey) completely and
|
|
|
|
# instead use our spidermonkey via nix.
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i 's/^MOZ_FIX_LINK_PATHS=.*$/MOZ_FIX_LINK_PATHS=""/' ./js/configure
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Code coverage for JavaScript";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
JSCoverage is a tool that measures code coverage for JavaScript
|
|
|
|
programs.
|
|
|
|
|
|
|
|
Code coverage statistics show which lines of a program have been
|
|
|
|
executed (and which have been missed). This information is useful
|
|
|
|
for constructing comprehensive test suites (hence, it is often
|
|
|
|
called test coverage).
|
|
|
|
|
|
|
|
JSCoverage works by instrumenting the JavaScript code used in web
|
|
|
|
pages. Code coverage statistics are collected while the
|
|
|
|
instrumented JavaScript code is executed in a web browser.
|
|
|
|
|
|
|
|
JSCoverage supports the complete language syntax described in the
|
|
|
|
ECMAScript Language Specification (ECMA-262, 3rd
|
|
|
|
edition). JSCoverage works with any modern standards-compliant web
|
|
|
|
browser - including Internet Explorer (IE 6, 7, and 8), Firefox,
|
|
|
|
Opera, Safari, and Google Chrome - on Microsoft Windows and
|
|
|
|
GNU/Linux.
|
|
|
|
'';
|
|
|
|
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://siliconforks.com/jscoverage/";
|
2021-01-23 12:26:19 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.linux;
|
2011-06-21 08:28:30 +01:00
|
|
|
};
|
|
|
|
}
|