jfbview: 0.5.1 -> 0.5.2

This commit is contained in:
Tobias Geerinckx-Rice 2016-05-06 11:56:56 +02:00
parent 982f83d310
commit e7cfdd6c14
No known key found for this signature in database
GPG Key ID: 91CCDB9B48541B99

View File

@ -1,23 +1,32 @@
{ stdenv, fetchFromGitHub, freetype, imlib2, jbig2dec, libjpeg, libX11 { stdenv, fetchFromGitHub
, mujs, mupdf, ncurses, openjpeg, openssl }: , freetype, harfbuzz, imlib2, jbig2dec, libjpeg, libX11, mujs, mupdf
, ncurses, openjpeg, openssl }:
let let
binaries = [ "jfbpdf" "jfbview" "jpdfcat" "jpdfgrep" ]; binaries = [ "jfbpdf" "jfbview" "jpdfcat" "jpdfgrep" ];
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "jfbview-${version}"; name = "jfbview-${version}";
version = "0.5.1"; version = "0.5.2";
src = fetchFromGitHub { src = fetchFromGitHub {
sha256 = "113bkf49q04k9rjps5l28ychmzsfjajp9cjhr433s9ld0972z01m"; sha256 = "1vd2ndl4ar2bzqf0k11qid6gvma59qg62imsa81mgczsqw7kvbx6";
rev = version; rev = version;
repo = "JFBView"; repo = "JFBView";
owner = "jichu4n"; owner = "jichu4n";
}; };
buildInputs = [ freetype imlib2 jbig2dec libjpeg libX11 mujs mupdf buildInputs = [ freetype harfbuzz imlib2 jbig2dec libjpeg libX11 mujs mupdf
ncurses openjpeg openssl ]; ncurses openjpeg openssl ];
configurePhase = ''
# Hack. Probing (with `ldconfig -p`) fails with cannot execute binary file.
# Overriding `OPENJP2 = ...` later works, but makes build output misleading:
substituteInPlace Makefile --replace "ldconfig -p" "echo libopenjp2"
make config.mk
'';
buildFlags = binaries; buildFlags = binaries;
enableParallelBuilding = true; enableParallelBuilding = true;