mkbrr: init at 1.11.0
This commit is contained in:
@@ -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";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user