From 1a4a2e7757c663c3cd10a31c6dde4d53e4f92144 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Mon, 2 Sep 2024 17:50:09 +0200 Subject: [PATCH] json2ts: init at v15.0.2 --- pkgs/by-name/js/json2ts/package.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pkgs/by-name/js/json2ts/package.nix diff --git a/pkgs/by-name/js/json2ts/package.nix b/pkgs/by-name/js/json2ts/package.nix new file mode 100644 index 000000000000..38243c4d4a2f --- /dev/null +++ b/pkgs/by-name/js/json2ts/package.nix @@ -0,0 +1,25 @@ +{ + buildNpmPackage, + fetchFromGitHub, + lib, +}: +buildNpmPackage { + name = "json2ts"; + version = "15.0.2"; + src = fetchFromGitHub { + owner = "bcherny"; + repo = "json-schema-to-typescript"; + rev = "118d6a8e7a5a9397d1d390ce297f127ae674a623"; + hash = "sha256-ldAFfw3E0A0lIJyDSsshgPRPR7OmV/FncPsDhC3waT8="; + }; + npmDepsHash = "sha256-kLKau4SBxI9bMAd7X8/FQfCza2sYl/+0bg2LQcOQIJo="; + + meta = with lib; { + mainProgram = "json2ts"; + description = "Compile JSON Schema to TypeScript type declarations"; + homepage = "https://github.com/bcherny/json-schema-to-typescript"; + license = licenses.mit; + maintainers = with maintainers; [ hsjobeki ]; + platforms = platforms.all; + }; +}