1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

Merge pull request #306835 from ibizaman/jsonschema

jsonschema: init at 5.3.1
This commit is contained in:
Pol Dellaiera 2024-07-08 20:10:47 +02:00 committed by GitHub
commit 6af8e3aa3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,36 @@
{ lib
, buildGoModule
, fetchFromGitHub
, nix-update-script
}:
buildGoModule rec {
pname = "jsonschema";
version = "5.3.1";
src = fetchFromGitHub {
owner = "santhosh-tekuri";
repo = "jsonschema";
rev = "refs/tags/v${version}";
hash = "sha256-ANo9OkdNVCjV5uEqr9lNNbStquNb/3oxuTfMqE2nUzo=";
};
sourceRoot = "source/cmd/jv";
passthru.updateScript = nix-update-script { };
vendorHash = "sha256-FuUkC7iwn/jO3fHjT9nGUXc2X1QuuxPc8DAzVpzhANk=";
ldflags = [
"-s"
"-w"
];
meta = {
description = "JSON schema compilation and validation";
homepage = "https://github.com/santhosh-tekuri/jsonschema";
changelog = "https://github.com/santhosh-tekuri/jsonschema/releases/tag/v${version}";
license = lib.licenses.asl20;
mainProgram = "jv";
maintainers = with lib.maintainers; [ ibizaman ];
};
}