From 945a6fc37f4e26a4d8201b18e8c737be8de80f89 Mon Sep 17 00:00:00 2001 From: qzylinra Date: Mon, 25 Aug 2025 09:59:54 +0800 Subject: [PATCH] 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. --- .../js/jscoverage/jsfalse_to_null.patch | 26 -------- pkgs/by-name/js/jscoverage/package.nix | 66 ------------------- pkgs/top-level/aliases.nix | 1 + 3 files changed, 1 insertion(+), 92 deletions(-) delete mode 100644 pkgs/by-name/js/jscoverage/jsfalse_to_null.patch delete mode 100644 pkgs/by-name/js/jscoverage/package.nix diff --git a/pkgs/by-name/js/jscoverage/jsfalse_to_null.patch b/pkgs/by-name/js/jscoverage/jsfalse_to_null.patch deleted file mode 100644 index b49594964e1f..000000000000 --- a/pkgs/by-name/js/jscoverage/jsfalse_to_null.patch +++ /dev/null @@ -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])); diff --git a/pkgs/by-name/js/jscoverage/package.nix b/pkgs/by-name/js/jscoverage/package.nix deleted file mode 100644 index 6b0044a6ef86..000000000000 --- a/pkgs/by-name/js/jscoverage/package.nix +++ /dev/null @@ -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; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 6a6ac68b11a7..624c701df635 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -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