kindlegen: Use unzip where necessary

This commit is contained in:
Andrew Childs 2018-01-16 01:46:37 +09:00
parent 222f905fd9
commit 2332e8b0d9

View file

@ -1,4 +1,4 @@
{ fetchurl, stdenv }:
{ fetchurl, stdenv, unzip }:
let
version = "2.9";
@ -32,6 +32,8 @@ in stdenv.mkDerivation rec {
sourceRoot = ".";
nativeBuildInputs = stdenv.lib.optional (stdenv.lib.hasSuffix ".zip" url) unzip;
installPhase = ''
mkdir -p $out/bin $out/share/kindlegen/doc
install -m755 kindlegen $out/bin/kindlegen