jscoverage: drop

The software build has failed. It has no maintainer, the upstream project has not been updated for years, and it is difficult to maintain. It should be removed.
This commit is contained in:
qzylinra
2025-08-25 09:59:54 +08:00
parent b8e538eabf
commit 945a6fc37f
3 changed files with 1 additions and 92 deletions
@@ -1,26 +0,0 @@
diff --git i/js/jsstr.cpp w/js/jsstr.cpp
index e662bf1..b18597e 100644
--- i/js/jsstr.cpp
+++ w/js/jsstr.cpp
@@ -3040,7 +3040,7 @@ js_InitStringClass(JSContext *cx, JSObject *obj)
JSVAL_VOID, NULL, NULL,
JSPROP_READONLY | JSPROP_PERMANENT | JSPROP_SHARED, 0, 0,
NULL)) {
- return JS_FALSE;
+ return NULL;
}
return proto;
diff --git i/js/jsxml.cpp w/js/jsxml.cpp
index 5621ede..e00c97d 100644
--- i/js/jsxml.cpp
+++ w/js/jsxml.cpp
@@ -303,7 +303,7 @@ NewXMLNamespace(JSContext *cx, JSString *prefix, JSString *uri, JSBool declared)
obj = js_NewObject(cx, &js_NamespaceClass.base, NULL, NULL);
if (!obj)
- return JS_FALSE;
+ return NULL;
JS_ASSERT(JSVAL_IS_VOID(obj->fslots[JSSLOT_PREFIX]));
JS_ASSERT(JSVAL_IS_VOID(obj->fslots[JSSLOT_URI]));
JS_ASSERT(JSVAL_IS_VOID(obj->fslots[JSSLOT_DECLARED]));
-66
View File
@@ -1,66 +0,0 @@
{
fetchurl,
perl,
python3,
lib,
stdenv,
zip,
}:
stdenv.mkDerivation rec {
pname = "jscoverage";
version = "0.5.1";
src = fetchurl {
url = "https://siliconforks.com/${pname}/download/${pname}-${version}.tar.bz2";
sha256 = "c45f051cec18c10352f15f9844f47e37e8d121d5fd16680e2dd0f3b4420eb7f4";
};
patches = [
./jsfalse_to_null.patch
];
nativeBuildInputs = [
perl
python3
zip
];
strictDeps = true;
# 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.
'';
homepage = "http://siliconforks.com/jscoverage/";
license = lib.licenses.gpl2;
platforms = lib.platforms.linux;
};
}
+1
View File
@@ -1190,6 +1190,7 @@ mapAliases {
jd-gui = throw "jd-gui has been removed due to a dependency on the dead JCenter Bintray. Other Java decompilers in Nixpkgs include bytecode-viewer (GUI), cfr (CLI), and procyon (CLI)."; # Added 2024-10-30
jikespg = throw "'jikespg' has been removed due to lack of maintenance upstream."; # Added 2025-06-10
jsawk = throw "'jsawk' has been removed because it is unmaintained upstream"; # Added 2028-08-07
jscoverage = throw "jscoverage has been removed, as it was broken"; # Added 2025-08-25
# Julia
julia_16-bin = throw "'julia_16-bin' has been removed from nixpkgs as it has reached end of life"; # Added 2024-10-08