readium: init at 0.10.1

This commit is contained in:
Cassie
2026-07-27 19:52:16 -06:00
parent c9639b1d2a
commit e3da729836

View File

@@ -0,0 +1,39 @@
{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
pname = "readium";
version = "0.10.1";
__structuredAttrs = true;
__darwinAllowLocalNetworking = true;
src = fetchFromGitHub {
owner = "readium";
repo = "cli";
tag = "v${finalAttrs.version}";
hash = "sha256-1MavPoM84W2mA5wKpxJkfoHLAsiTXapc1aRZ+jnnXvs=";
};
vendorHash = "sha256-7hWl7OPqFuEhnIn1oBI8kMcXwkhqTLkOV/NBQUoqqSQ=";
ldflags = [ "-X=github.com/readium/cli/internal/version.Version=v${finalAttrs.version}" ];
postInstall = ''
mv $out/bin/cmd $out/bin/readium
'';
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
meta = {
description = "CLI utility with support for a wide range of commands for ebooks, comics and audiobooks";
homepage = "https://github.com/readium/cli/";
changelog = "https://github.com/readium/cli/blob/develop/CHANGELOG.MD";
license = lib.licenses.bsd3;
mainProgram = "readium";
maintainers = with lib.maintainers; [ CodeF53 ];
};
})