mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-03-04 07:52:57 +00:00
language/go: create nixpkg for json2go
This commit is contained in:
parent
c07410f183
commit
82e8ed17ce
1 changed files with 26 additions and 0 deletions
26
flake/pkgs/by-name/json2go/package.nix
Normal file
26
flake/pkgs/by-name/json2go/package.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "json2go";
|
||||
version = "0.1.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "olexsmir";
|
||||
repo = "json2go";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-2QGvPLQ7CADRNURTdnHgTCK2vyRHgtdR6YFPuTL9Ymo=";
|
||||
};
|
||||
|
||||
vendorHash = null;
|
||||
|
||||
meta = {
|
||||
description = "convert json to go type annotations";
|
||||
mainProgram = "json2go";
|
||||
homepage = "https://github.com/olexsmir/json2go";
|
||||
license = lib.licenses.unlicense;
|
||||
changelog = "${finalAttrs.meta.homepage}/releases/tag/${finalAttrs.version}";
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue