blob: e25a2ef696fa90659736795fdaddbffaaa7df71d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule (finalAttrs: {
pname = "tygo";
version = "0.2.21";
src = fetchFromGitHub {
owner = "gzuidhof";
repo = "tygo";
rev = "v${finalAttrs.version}";
hash = "sha256-nhGc5K6Mb6l88lNbcX2vOT2jUZoIVoHuk4NCzL3hjys=";
};
vendorHash = "sha256-XQS+P+vPt2rH0SD0srFSnqjupIeu5XgFi3iVzq/ovmg=";
env.CGO_ENABLED = 0;
ldflags = [
"-s"
"-w"
"-extldflags -static"
];
meta = {
description = "Generate Typescript types from Golang source code";
homepage = "https://github.com/gzuidhof/tygo";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ alexymantha ];
mainProgram = "tygo";
};
})
|