From e3da729836e88ef0f786b62fcc254b0ea037fd53 Mon Sep 17 00:00:00 2001 From: Cassie <37855219+CodeF53@users.noreply.github.com> Date: Mon, 27 Jul 2026 19:52:16 -0600 Subject: [PATCH] readium: init at 0.10.1 --- pkgs/by-name/re/readium/package.nix | 39 +++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 pkgs/by-name/re/readium/package.nix diff --git a/pkgs/by-name/re/readium/package.nix b/pkgs/by-name/re/readium/package.nix new file mode 100644 index 000000000000..2d312ed259d5 --- /dev/null +++ b/pkgs/by-name/re/readium/package.nix @@ -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 ]; + }; +})