mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
Merge pull request #33934 from thefloweringash/kindlegen-unzip
kindlegen: Use unzip where necessary
This commit is contained in:
commit
3fac63b650
@ -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 New Issue
Block a user