Skip to content

Commit 2c83acc

Browse files
committed
mkbrr: init at 1.11.0
1 parent 975aa54 commit 2c83acc

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

pkgs/by-name/mk/mkbrr/package.nix

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
lib,
3+
buildGoModule,
4+
fetchFromGitHub,
5+
versionCheckHook,
6+
}:
7+
8+
buildGoModule (finalAttrs: {
9+
pname = "mkbrr";
10+
version = "1.11.0";
11+
12+
src = fetchFromGitHub {
13+
owner = "autobrr";
14+
repo = "mkbrr";
15+
tag = "v${finalAttrs.version}";
16+
hash = "sha256-NTkZKGoJqy7+f8dIIgLVRUQziD8QkcmoV2jEukXCqmM=";
17+
};
18+
19+
vendorHash = "sha256-iczdGnJS70Ze5eZ2gnL511Ecy6Qjp+i4I749eIroRCM=";
20+
21+
ldflags = [
22+
"-s"
23+
"-w"
24+
"-X main.version=v${finalAttrs.version}"
25+
"-X main.buildTime=unknown"
26+
];
27+
28+
doCheck = true;
29+
30+
doInstallCheck = true;
31+
32+
nativeInstallCheckInputs = [
33+
versionCheckHook
34+
];
35+
36+
versionCheckProgramArg = "version";
37+
38+
meta = {
39+
description = "Tool to create, modify and inspect torrent files";
40+
homepage = "https://github.com/autobrr/mkbrr";
41+
license = lib.licenses.gpl2Plus;
42+
maintainers = with lib.maintainers; [ ambroisie ];
43+
mainProgram = "mkbrr";
44+
};
45+
})

0 commit comments

Comments
 (0)