1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

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
, mujs, mupdf, ncurses, openjpeg, openssl }:
{ stdenv, fetchFromGitHub
, freetype, harfbuzz, imlib2, jbig2dec, libjpeg, libX11, mujs, mupdf
, ncurses, openjpeg, openssl }:
let
binaries = [ "jfbpdf" "jfbview" "jpdfcat" "jpdfgrep" ];
in
stdenv.mkDerivation rec {
name = "jfbview-${version}";
version = "0.5.1";
version = "0.5.2";
src = fetchFromGitHub {
sha256 = "113bkf49q04k9rjps5l28ychmzsfjajp9cjhr433s9ld0972z01m";
sha256 = "1vd2ndl4ar2bzqf0k11qid6gvma59qg62imsa81mgczsqw7kvbx6";
rev = version;
repo = "JFBView";
owner = "jichu4n";
};
buildInputs = [ freetype imlib2 jbig2dec libjpeg libX11 mujs mupdf
buildInputs = [ freetype harfbuzz imlib2 jbig2dec libjpeg libX11 mujs mupdf
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;
enableParallelBuilding = true;