2020-03-27 07:33:21 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2020-02-18 06:32:51 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kepubify";
|
2021-08-10 08:52:18 +00:00
|
|
|
version = "4.0.1";
|
2020-02-18 06:32:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-07-14 20:37:32 +00:00
|
|
|
owner = "pgaskin";
|
2020-02-18 06:32:51 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-08-10 08:52:18 +00:00
|
|
|
sha256 = "sha256-ZQY5U9uMCwsMl3Ds3bscPYmTt8JdWehOoowb+AmJSbQ=";
|
2020-02-18 06:32:51 +00:00
|
|
|
};
|
|
|
|
|
2021-08-10 08:52:18 +00:00
|
|
|
vendorSha256 = "sha256-DcE2MCbH5FIU1UoIF8OF17TfsWS5eQhHnWDEAxy8X6c=";
|
2020-02-18 06:32:51 +00:00
|
|
|
|
2021-07-03 20:48:35 +00:00
|
|
|
# remove when built with >= go 1.17
|
2021-08-05 21:52:33 +00:00
|
|
|
tags = [ "zip117" ];
|
2021-07-03 20:48:35 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
2020-02-18 06:32:51 +00:00
|
|
|
|
2020-04-01 02:45:45 +00:00
|
|
|
excludedPackages = [ "kobotest" ];
|
2020-02-18 06:32:51 +00:00
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2020-02-18 06:32:51 +00:00
|
|
|
description = "EPUB to KEPUB converter";
|
|
|
|
homepage = "https://pgaskin.net/kepubify";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ zowoq ];
|
|
|
|
};
|
2020-07-14 20:37:32 +00:00
|
|
|
}
|