kepubify: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:34:00 -05:00
parent dabed704c5
commit 378de230c1
2 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, buildGoModule }:
{ stdenv, fetchFromGitHub, buildGoModule, Security }:
buildGoModule rec {
pname = "kepubify";
@ -15,9 +15,11 @@ buildGoModule rec {
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
subPackages = [ "." "covergen" "seriesmeta" ];
meta = with lib; {
meta = with stdenv.lib; {
description = "EPUB to KEPUB converter";
homepage = "https://pgaskin.net/kepubify";
license = licenses.mit;

View file

@ -20229,7 +20229,9 @@ in
kega-fusion = pkgsi686Linux.callPackage ../misc/emulators/kega-fusion { };
kepubify = callPackage ../tools/misc/kepubify { };
kepubify = callPackage ../tools/misc/kepubify {
inherit (darwin.apple_sdk.frameworks) Security;
};
kermit = callPackage ../tools/misc/kermit { };