mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
readium: init at 0.10.1
This commit is contained in:
39
pkgs/by-name/re/readium/package.nix
Normal file
39
pkgs/by-name/re/readium/package.nix
Normal 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 ];
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user