mkbrr: init at 1.11.0

This commit is contained in:
Bruno BELANYI
2025-05-18 23:29:48 +01:00
parent 975aa54b5d
commit 2c83accecf
+45
View File
@@ -0,0 +1,45 @@
{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
pname = "mkbrr";
version = "1.11.0";
src = fetchFromGitHub {
owner = "autobrr";
repo = "mkbrr";
tag = "v${finalAttrs.version}";
hash = "sha256-NTkZKGoJqy7+f8dIIgLVRUQziD8QkcmoV2jEukXCqmM=";
};
vendorHash = "sha256-iczdGnJS70Ze5eZ2gnL511Ecy6Qjp+i4I749eIroRCM=";
ldflags = [
"-s"
"-w"
"-X main.version=v${finalAttrs.version}"
"-X main.buildTime=unknown"
];
doCheck = true;
doInstallCheck = true;
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = "version";
meta = {
description = "Tool to create, modify and inspect torrent files";
homepage = "https://github.com/autobrr/mkbrr";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ ambroisie ];
mainProgram = "mkbrr";
};
})