2020-03-21 11:34:00 +01:00
|
|
|
{ stdenv, fetchFromGitHub, buildGoModule, Security }:
|
2020-02-18 07:32:51 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kepubify";
|
2020-03-03 07:25:05 +01:00
|
|
|
version = "3.1.0";
|
2020-02-18 07:32:51 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "geek1011";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-03-03 07:25:05 +01:00
|
|
|
sha256 = "17zhfq1nfdas4k5yzyr82zs3r3mm4n8f907ih1ckx081hy4g7a2p";
|
2020-02-18 07:32:51 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
modSha256 = "18q9ywsjc2v1bsmw7307dpd4v5m7v80hbhijkfrkcyqzj34jrq43";
|
|
|
|
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
|
|
|
|
2020-03-21 11:34:00 +01:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
2020-02-18 07:32:51 +01:00
|
|
|
subPackages = [ "." "covergen" "seriesmeta" ];
|
|
|
|
|
2020-03-21 11:34:00 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-02-18 07:32:51 +01:00
|
|
|
description = "EPUB to KEPUB converter";
|
|
|
|
homepage = "https://pgaskin.net/kepubify";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ zowoq ];
|
|
|
|
};
|
|
|
|
}
|