Merge pull request #33934 from thefloweringash/kindlegen-unzip

kindlegen: Use unzip where necessary
This commit is contained in:
Jörg Thalheim 2018-01-16 13:35:31 +00:00 committed by GitHub
commit 3fac63b650
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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