mupdf: Update to 1.3, and add mupdf.desktop file
This commit is contained in:
parent
781f13752b
commit
f90bdd6a09
1 changed files with 15 additions and 2 deletions
|
@ -1,11 +1,11 @@
|
|||
{ stdenv, fetchurl, pkgconfig, zlib, freetype, libjpeg, jbig2dec, openjpeg
|
||||
, libX11, libXext }:
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mupdf-1.1";
|
||||
name = "mupdf-1.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://mupdf.com/download/archive/${name}-source.tar.gz";
|
||||
sha256 = "e54666bbe1d9f0a5464349bfbeffcf676c4a0fcad3efb89eba1f20d4ac991f34";
|
||||
sha256 = "0y247nka5gkr1ajn47jrlp5rcnf6h4ff7dfsprma3h4wxqdv7a5b";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgconfig zlib freetype libjpeg jbig2dec openjpeg libX11 libXext ];
|
||||
|
@ -15,6 +15,19 @@ stdenv.mkDerivation rec {
|
|||
export NIX_CFLAGS_COMPILE=" $NIX_CFLAGS_COMPILE -I$(echo ${openjpeg}/include/openjpeg-*) "
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/applications
|
||||
cat > $out/share/applications/mupdf.desktop <<EOF
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Version=1.0
|
||||
Name=mupdf
|
||||
Comment=PDF viewer
|
||||
Exec=$out/bin/mupdf-x11
|
||||
Terminal=false
|
||||
EOF
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = http://mupdf.com/;
|
||||
description = "Lightweight PDF viewer and toolkit written in portable C";
|
||||
|
|
Loading…
Reference in a new issue