1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

Merge pull request #322568 from pyrox0/fixjson-init

fixjson: move out of node-packages
This commit is contained in:
Weijia Wang 2024-07-01 00:30:16 +02:00 committed by GitHub
commit b2e0a5c33c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 29 additions and 59 deletions

View file

@ -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 ];
};
}

View file

@ -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

View file

@ -102,7 +102,6 @@
, "expo-cli"
, "fast-cli"
, "fauna-shell"
, "fixjson"
, "fkill-cli"
, "fleek-cli"
, "forever"

View file

@ -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";