diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-07-01 00:30:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-01 00:30:16 +0200 |
commit | b2e0a5c33ce0db07af94a7f9cfd50612dd4bdcda (patch) | |
tree | dec7051350efceb59e8bf94e3cb1bde50ca8d99d | |
parent | 354766a0f978793add8a3dfa8bde2a0104c230c3 (diff) | |
parent | 5e32cc2824c0b42bc46912f83f7d657ed77b2a92 (diff) |
Merge pull request #322568 from pyrox0/fixjson-init
fixjson: move out of node-packages
-rw-r--r-- | pkgs/by-name/fi/fixjson/package.nix | 28 | ||||
-rw-r--r-- | pkgs/development/node-packages/aliases.nix | 1 | ||||
-rw-r--r-- | pkgs/development/node-packages/node-packages.json | 1 | ||||
-rw-r--r-- | pkgs/development/node-packages/node-packages.nix | 58 |
4 files changed, 29 insertions, 59 deletions
diff --git a/pkgs/by-name/fi/fixjson/package.nix b/pkgs/by-name/fi/fixjson/package.nix new file mode 100644 index 0000000000000..52ed03c690f5f --- /dev/null +++ b/pkgs/by-name/fi/fixjson/package.nix @@ -0,0 +1,28 @@ +{ + lib, + buildNpmPackage, + fetchFromGitHub +}: + +buildNpmPackage { + pname = "fixjson"; + version = "1.1.2-unstable-2021-01-05"; + + src = fetchFromGitHub { + owner = "rhysd"; + repo = "fixjson"; + # Upstream has no tagged releases, but this commit bumps version + rev = "d0483f9cc59896ea59bb16f906f770562d332000"; + hash = "sha256-Mu7ho0t5GzFYuBK6FEXhpsaRxn9HF3lnvMxRpg0aqYI="; + }; + + npmDepsHash = "sha256-tnsgNtMdnrKYxcYy9+4tgp1BX+o8e5/HUDeSP5BOvUQ="; + + meta = { + description = "JSON Fixer for Humans using (relaxed) JSON5"; + homepage = "https://github.com/rhysd/fixjson"; + license = lib.licenses.mit; + mainProgram = "fixjson"; + maintainers = with lib.maintainers; [ pyrox0 ]; + }; +} diff --git a/pkgs/development/node-packages/aliases.nix b/pkgs/development/node-packages/aliases.nix index 2031bfa354af9..43ecfed6d2f58 100644 --- a/pkgs/development/node-packages/aliases.nix +++ b/pkgs/development/node-packages/aliases.nix @@ -84,6 +84,7 @@ mapAliases { inherit (pkgs.elmPackages) elm-test; eslint_d = pkgs.eslint_d; # Added 2023-05-26 inherit (pkgs) firebase-tools; # added 2023-08-18 + inherit (pkgs) fixjson; # added 2024-06-26 flood = pkgs.flood; # Added 2023-07-25 generator-code = throw "generator-code was removed because it provides no executable"; # added 2023-09-24 inherit (pkgs) git-run; # added 2024-06-26 diff --git a/pkgs/development/node-packages/node-packages.json b/pkgs/development/node-packages/node-packages.json index c6502df1bec78..295fdef57f1cb 100644 --- a/pkgs/development/node-packages/node-packages.json +++ b/pkgs/development/node-packages/node-packages.json @@ -102,7 +102,6 @@ , "expo-cli" , "fast-cli" , "fauna-shell" -, "fixjson" , "fkill-cli" , "fleek-cli" , "forever" diff --git a/pkgs/development/node-packages/node-packages.nix b/pkgs/development/node-packages/node-packages.nix index c5910dd0352ed..5c56659036a17 100644 --- a/pkgs/development/node-packages/node-packages.nix +++ b/pkgs/development/node-packages/node-packages.nix @@ -33658,15 +33658,6 @@ let sha512 = "XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg=="; }; }; - "json5-relaxed-0.5.4" = { - name = "json5-relaxed"; - packageName = "json5-relaxed"; - version = "0.5.4"; - src = fetchurl { - url = "https://registry.npmjs.org/json5-relaxed/-/json5-relaxed-0.5.4.tgz"; - sha512 = "oDPf7b6nFDKcX2qt5OLI/ZwGwH43qS/g2Z98UWo8ChoNtVMYdGa3Y48WHvjPqvNKnTUa2fOanvHFeE7ZxkiboQ=="; - }; - }; "jsonata-1.8.7" = { name = "jsonata"; packageName = "jsonata"; @@ -72558,55 +72549,6 @@ in bypassCache = true; reconstructLock = true; }; - fixjson = nodeEnv.buildNodePackage { - name = "fixjson"; - packageName = "fixjson"; - version = "1.1.2"; - src = fetchurl { - url = "https://registry.npmjs.org/fixjson/-/fixjson-1.1.2.tgz"; - sha512 = "NptKAXT3UrePy8JfK6ww/yiwqjVipouoEYUucKVpLNOiOWsrZ7XtcG3iUWpb3yGUoaN7OEafsd3cEGFMIjoXUQ=="; - }; - dependencies = [ - sources."ansi-regex-5.0.1" - sources."ansi-styles-4.3.0" - sources."balanced-match-1.0.2" - sources."brace-expansion-1.1.11" - sources."cliui-7.0.4" - sources."color-convert-2.0.1" - sources."color-name-1.1.4" - sources."concat-map-0.0.1" - sources."detect-indent-6.1.0" - sources."emoji-regex-8.0.0" - sources."escalade-3.1.2" - sources."fs.realpath-1.0.0" - sources."get-caller-file-2.0.5" - sources."glob-7.2.3" - sources."inflight-1.0.6" - sources."inherits-2.0.4" - sources."is-fullwidth-code-point-3.0.0" - sources."json5-relaxed-0.5.4" - sources."minimatch-3.1.2" - sources."once-1.4.0" - sources."path-is-absolute-1.0.1" - sources."require-directory-2.1.1" - sources."string-width-4.2.3" - sources."strip-ansi-6.0.1" - sources."wrap-ansi-7.0.0" - sources."wrappy-1.0.2" - sources."y18n-5.0.8" - sources."yargs-16.2.0" - sources."yargs-parser-20.2.9" - ]; - buildInputs = globalBuildInputs; - meta = { - description = "JSON fixer for humans using (relaxed) JSON5"; - homepage = "https://github.com/rhysd/fixjson#readme"; - license = "MIT"; - }; - production = true; - bypassCache = true; - reconstructLock = true; - }; fkill-cli = nodeEnv.buildNodePackage { name = "fkill-cli"; packageName = "fkill-cli"; |