nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 versionCheckHook,
6 nix-update-script,
7}:
8
9buildGoModule (finalAttrs: {
10 pname = "gotip";
11 version = "0.6.2";
12
13 src = fetchFromGitHub {
14 owner = "lusingander";
15 repo = "gotip";
16 tag = "v${finalAttrs.version}";
17 hash = "sha256-i5DgBuRHGLuR99lAv8M8eycd8MtEUtgGjKrI4YMoGIo=";
18 };
19
20 vendorHash = "sha256-+saAOzbBpmd7+s7FXUUB30tmi53RpDRckeLiT36ykE4=";
21
22 ldflags = [
23 "-s"
24 "-w"
25 ];
26
27 doInstallCheck = true;
28 nativeInstallCheckInputs = [ versionCheckHook ];
29
30 passthru.updateScript = nix-update-script { };
31
32 meta = {
33 description = "Go test interactive picker";
34 homepage = "https://github.com/lusingander/gotip";
35 license = lib.licenses.mit;
36 maintainers = with lib.maintainers; [ yiyu ];
37 mainProgram = "gotip";
38 };
39})