ijs: derive from ghostscript

This commit is contained in:
Nikolay Amiantov 2016-04-30 03:00:09 +03:00
parent 6fef00260a
commit a589b7bd5f
2 changed files with 5 additions and 8 deletions

View File

@ -1,14 +1,9 @@
{ stdenv, fetchurl, fetchpatch, autoreconfHook }: { stdenv, fetchurl, fetchpatch, autoreconfHook, ghostscript }:
let version = "9.18";
in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "ijs-${version}"; name = "ijs-${ghostscript.version}";
src = fetchurl { inherit (ghostscript) src;
url = "http://downloads.ghostscript.com/public/ghostscript-${version}.tar.bz2";
sha256 = "18ad90za28dxybajqwf3y3dld87cgkx1ljllmcnc7ysspfxzbnl3";
};
patches = [ patches = [
# http://bugs.ghostscript.com/show_bug.cgi?id=696246 # http://bugs.ghostscript.com/show_bug.cgi?id=696246

View File

@ -126,6 +126,8 @@ stdenv.mkDerivation rec {
install_name_tool -change libgs.dylib.${version} $out/lib/libgs.dylib.${version} $out/bin/gs install_name_tool -change libgs.dylib.${version} $out/lib/libgs.dylib.${version} $out/bin/gs
''; '';
passthru = { inherit version; };
meta = { meta = {
homepage = "http://www.ghostscript.com/"; homepage = "http://www.ghostscript.com/";
description = "PostScript interpreter (mainline version)"; description = "PostScript interpreter (mainline version)";