From 472b657221071bdf7048ec5c3eca7ca458b0a5f5 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Tue, 18 Feb 2020 16:32:51 +1000 Subject: [PATCH] kepubify: init at 3.0.0 Co-authored-by: Jacob Dillon --- pkgs/tools/misc/kepubify/default.nix | 26 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/tools/misc/kepubify/default.nix diff --git a/pkgs/tools/misc/kepubify/default.nix b/pkgs/tools/misc/kepubify/default.nix new file mode 100644 index 000000000000..faa5e9d85e81 --- /dev/null +++ b/pkgs/tools/misc/kepubify/default.nix @@ -0,0 +1,26 @@ +{ lib, fetchFromGitHub, buildGoModule }: + +buildGoModule rec { + pname = "kepubify"; + version = "3.0.0"; + + src = fetchFromGitHub { + owner = "geek1011"; + repo = pname; + rev = "v${version}"; + sha256 = "168n4xbhjrzwzlhvakmsd0nwqjwgibphkwzq5hcxrk9ywpqpxjad"; + }; + + modSha256 = "18q9ywsjc2v1bsmw7307dpd4v5m7v80hbhijkfrkcyqzj34jrq43"; + + buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ]; + + subPackages = [ "." "covergen" "seriesmeta" ]; + + meta = with lib; { + description = "EPUB to KEPUB converter"; + homepage = "https://pgaskin.net/kepubify"; + license = licenses.mit; + maintainers = with maintainers; [ zowoq ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4728ae975e7d..abd310f729d4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19920,6 +19920,8 @@ in kega-fusion = pkgsi686Linux.callPackage ../misc/emulators/kega-fusion { }; + kepubify = callPackage ../tools/misc/kepubify { }; + kermit = callPackage ../tools/misc/kermit { }; kexi = libsForQt5.callPackage ../applications/office/kexi { };