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 { };