mkbrr: init at 1.11.0 (#407691)

This commit is contained in:
Aleksana
2025-05-19 17:32:01 +08:00
committed by GitHub
+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";
};
})