summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPascal Wittmann <mail@pascal-wittmann.de>2017-01-09 20:48:09 +0100
committerPascal Wittmann <mail@pascal-wittmann.de>2017-01-09 20:49:02 +0100
commit7a8656407df674e9d840a74e0136aaba3b0e6eb1 (patch)
treea9974c327a283e3f3ce6d5247c274acd5292955c /pkgs
parentb35af136ef48cc9c091fea6c50f7f89c9a990ed9 (diff)
downloadnixlib-7a8656407df674e9d840a74e0136aaba3b0e6eb1.tar
nixlib-7a8656407df674e9d840a74e0136aaba3b0e6eb1.tar.gz
nixlib-7a8656407df674e9d840a74e0136aaba3b0e6eb1.tar.bz2
nixlib-7a8656407df674e9d840a74e0136aaba3b0e6eb1.tar.lz
nixlib-7a8656407df674e9d840a74e0136aaba3b0e6eb1.tar.xz
nixlib-7a8656407df674e9d840a74e0136aaba3b0e6eb1.tar.zst
nixlib-7a8656407df674e9d840a74e0136aaba3b0e6eb1.zip
pdf2djvu: 0.9.4 -> 0.9.5
and fix build that broke due to multiple outputs of djvulibre
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/typesetting/pdf2djvu/default.nix14
1 files changed, 10 insertions, 4 deletions
diff --git a/pkgs/tools/typesetting/pdf2djvu/default.nix b/pkgs/tools/typesetting/pdf2djvu/default.nix
index 5f344628e376..2318a146f62f 100644
--- a/pkgs/tools/typesetting/pdf2djvu/default.nix
+++ b/pkgs/tools/typesetting/pdf2djvu/default.nix
@@ -1,15 +1,21 @@
 { stdenv, fetchurl, pkgconfig, djvulibre, poppler, fontconfig, libjpeg }:
 
 stdenv.mkDerivation rec {
-  version = "0.9.4";
+  version = "0.9.5";
   name = "pdf2djvu-${version}";
 
   src = fetchurl {
-    url = "https://bitbucket.org/jwilk/pdf2djvu/downloads/${name}.tar.xz";
-    sha256 = "1a1gwr6yzbiximbpgg4rc69dq8g3jmxwcbcwqk0fhfbgzj1j4w65";
+    url = "https://github.com/jwilk/pdf2djvu/releases/download/${version}/${name}.tar.xz";
+    sha256 = "0fr8b44rsqll2m6qnh9id1lfc980k7rj3aq975mwba4y57rwnlnc";
   };
 
-  buildInputs = [ pkgconfig djvulibre poppler fontconfig libjpeg ];
+  nativeBuildInputs = [ pkgconfig ];
+
+  buildInputs = [ djvulibre poppler fontconfig libjpeg ];
+
+  preConfigure = ''
+    sed -i 's#\$djvulibre_bin_path#${djvulibre.bin}/bin#g' configure
+  '';
 
   meta = with stdenv.lib; {
     description = "Creates djvu files from PDF files";