mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
34 lines
689 B
Nix
34 lines
689 B
Nix
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
let
|
|
version = "1.4.1";
|
|
in
|
|
buildGoModule {
|
|
pname = "yajsv";
|
|
version = version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "neilpa";
|
|
repo = "yajsv";
|
|
rev = "v${version}";
|
|
hash = "sha256-dp7PBN8yR+gPPUWA+ug11dUN7slU6CJAojuxt5eNTxA=";
|
|
};
|
|
|
|
vendorHash = "sha256-f45climGKl7HxD+1vz2TGqW/d0dqJ0RfvgJoRRM6lUk=";
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
$out/bin/yajsv -v > /dev/null
|
|
'';
|
|
|
|
meta = {
|
|
description = "Yet Another JSON Schema Validator";
|
|
homepage = "https://github.com/neilpa/yajsv";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ rycee ];
|
|
};
|
|
}
|