Skip to content

Commit cc46ba9

Browse files
authored
zvm: init at 0.8.5 (#389418)
2 parents 0fe48f3 + c14d503 commit cc46ba9

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

pkgs/by-name/zv/zvm/package.nix

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
lib,
3+
buildGoModule,
4+
fetchFromGitHub,
5+
versionCheckHook,
6+
nix-update-script,
7+
}:
8+
9+
buildGoModule rec {
10+
pname = "zvm";
11+
version = "0.8.5";
12+
13+
src = fetchFromGitHub {
14+
owner = "tristanisham";
15+
repo = "zvm";
16+
tag = "v${version}";
17+
hash = "sha256-1m/sNthkT2+qOMGLqXFtoY2F7aFeq5xzENFIEXhp+Z8=";
18+
};
19+
20+
vendorHash = "sha256-QiE+aqiesygClFvdjIlyaRiC1I3qybCPuMxt/3HQUyA=";
21+
22+
doInstallCheck = true;
23+
versionCheckProgramArg = "--version";
24+
nativeInstallCheckInputs = [ versionCheckHook ];
25+
26+
passthru.updateScript = nix-update-script { };
27+
28+
meta = {
29+
homepage = "https://www.zvm.app/";
30+
downloadPage = "https://github.com/tristanisham/zvm";
31+
changelog = "https://github.com/tristanisham/zvm/releases/tag/v${version}";
32+
description = "Tool to manage and use different Zig versions";
33+
license = lib.licenses.mit;
34+
maintainers = with lib.maintainers; [ ethancedwards8 ];
35+
platforms = lib.platforms.unix;
36+
mainProgram = "zvm";
37+
};
38+
}

0 commit comments

Comments
 (0)