ghostscript: clean up
* Do not use pkgconfig alias. * Move version & hash inline.
This commit is contained in:
parent
19e31fa052
commit
e22e6d763a
@ -1,4 +1,4 @@
|
|||||||
{ config, stdenv, lib, fetchurl, pkgconfig, zlib, expat, openssl, autoconf
|
{ config, stdenv, lib, fetchurl, pkg-config, zlib, expat, openssl, autoconf
|
||||||
, libjpeg, libpng, libtiff, freetype, fontconfig, libpaper, jbig2dec
|
, libjpeg, libpng, libtiff, freetype, fontconfig, libpaper, jbig2dec
|
||||||
, libiconv, ijs, lcms2, fetchpatch
|
, libiconv, ijs, lcms2, fetchpatch
|
||||||
, cupsSupport ? config.ghostscript.cups or (!stdenv.isDarwin), cups ? null
|
, cupsSupport ? config.ghostscript.cups or (!stdenv.isDarwin), cups ? null
|
||||||
@ -9,11 +9,6 @@ assert x11Support -> xlibsWrapper != null;
|
|||||||
assert cupsSupport -> cups != null;
|
assert cupsSupport -> cups != null;
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "9.${ver_min}.${ver_patch}";
|
|
||||||
ver_min = "53";
|
|
||||||
ver_patch = "3";
|
|
||||||
sha512 = "2vif3vgxa5wma16yxvhhkymk4p309y5204yykarq94r5rk890556d2lj5w7acnaa2ymkym6y0zd4vq9sy9ca2346igg2c6dxqkjr0zb";
|
|
||||||
|
|
||||||
fonts = stdenv.mkDerivation {
|
fonts = stdenv.mkDerivation {
|
||||||
name = "ghostscript-fonts";
|
name = "ghostscript-fonts";
|
||||||
|
|
||||||
@ -38,11 +33,11 @@ let
|
|||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "ghostscript";
|
pname = "ghostscript";
|
||||||
inherit version;
|
version = "9.53.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9${ver_min}${ver_patch}/${pname}-${version}.tar.xz";
|
url = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9${lib.versions.minor version}${lib.versions.patch version}/${pname}-${version}.tar.xz";
|
||||||
inherit sha512;
|
sha512 = "2vif3vgxa5wma16yxvhhkymk4p309y5204yykarq94r5rk890556d2lj5w7acnaa2ymkym6y0zd4vq9sy9ca2346igg2c6dxqkjr0zb";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
@ -58,7 +53,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig autoconf ];
|
nativeBuildInputs = [ pkg-config autoconf ];
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ zlib expat openssl
|
[ zlib expat openssl
|
||||||
libjpeg libpng libtiff freetype fontconfig libpaper jbig2dec
|
libjpeg libpng libtiff freetype fontconfig libpaper jbig2dec
|
||||||
@ -112,8 +107,6 @@ 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 = "https://www.ghostscript.com/";
|
homepage = "https://www.ghostscript.com/";
|
||||||
description = "PostScript interpreter (mainline version)";
|
description = "PostScript interpreter (mainline version)";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user