2020-03-27 08:33:21 +01:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2020-02-18 07:32:51 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kepubify";
|
2021-12-24 04:03:30 +01:00
|
|
|
version = "4.0.3";
|
2020-02-18 07:32:51 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-07-14 22:37:32 +02:00
|
|
|
owner = "pgaskin";
|
2020-02-18 07:32:51 +01:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-12-24 04:03:30 +01:00
|
|
|
sha256 = "sha256-pe4jNBoPjrkvsdeFjH4TNwacp0qkf+v+SjIAZqV1GWE=";
|
2020-02-18 07:32:51 +01:00
|
|
|
};
|
|
|
|
|
2021-12-24 04:03:30 +01:00
|
|
|
vendorSha256 = "sha256-eiFG6lgsY5hf+XT3Kf5uA4Ai8vBbPsh1T4ObV+rj30Y=";
|
2020-02-18 07:32:51 +01:00
|
|
|
|
2021-07-03 22:48:35 +02:00
|
|
|
# remove when built with >= go 1.17
|
2021-08-05 23:52:33 +02:00
|
|
|
tags = [ "zip117" ];
|
2021-07-03 22:48:35 +02:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
2020-02-18 07:32:51 +01:00
|
|
|
|
2020-04-01 04:45:45 +02:00
|
|
|
excludedPackages = [ "kobotest" ];
|
2020-02-18 07:32:51 +01:00
|
|
|
|
2020-03-27 08:33:21 +01:00
|
|
|
meta = with 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 ];
|
|
|
|
};
|
2020-07-14 22:37:32 +02:00
|
|
|
}
|