Merge pull request #288847 from marsam/update-quicktype

quicktype: 23.0.81 -> 23.0.103
This commit is contained in:
Mario Rodas 2024-02-15 21:47:58 -05:00 committed by GitHub
commit f654da5ff4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,14 +1,14 @@
{ lib, buildNpmPackage, fetchFromGitHub, jq }: { lib, buildNpmPackage, fetchFromGitHub, jq, quicktype, testers }:
buildNpmPackage rec { buildNpmPackage rec {
pname = "quicktype"; pname = "quicktype";
version = "23.0.81"; # version from https://npm.im/quicktype version = "23.0.104"; # version from https://npm.im/quicktype
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "glideapps"; owner = "glideapps";
repo = "quicktype"; repo = "quicktype";
rev = "838c5e0e63a50d7c7790dc81118e664480fc4a80"; # version not tagged rev = "916cd94a9d4fdeab870b6a12f42ad43ebaedf314"; # version not tagged
hash = "sha256-+VMkfkBSomxxlkuOeMqBCySe7VCx2K5bIdF/tmVgK/Y="; hash = "sha256-PI9YgFVy7Mlln9+7IAU9vzyvK606PuAJ32st3NDwXIw=";
}; };
postPatch = '' postPatch = ''
@ -21,6 +21,10 @@ buildNpmPackage rec {
mv packages/ $out/lib/node_modules/quicktype/ mv packages/ $out/lib/node_modules/quicktype/
''; '';
passthru.tests = {
version = testers.testVersion { package = quicktype; };
};
meta = with lib; { meta = with lib; {
description = "Generate types and converters from JSON, Schema, and GraphQL"; description = "Generate types and converters from JSON, Schema, and GraphQL";
homepage = "https://quicktype.io/"; homepage = "https://quicktype.io/";