mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
kindlegen: Use unzip where necessary
This commit is contained in:
parent
222f905fd9
commit
2332e8b0d9
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue