46 lines
904 B
Nix
46 lines
904 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "mkbrr";
|
|
version = "1.15.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "autobrr";
|
|
repo = "mkbrr";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-7p/p5WAJpaIhvJRTXYWoTOyuqN41X187tAnkVY1XCMY=";
|
|
};
|
|
|
|
vendorHash = "sha256-MEDzZd67iXPY/MioMd1FcTLY+8CdJN7+oC7qus63yJ8=";
|
|
|
|
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";
|
|
};
|
|
})
|