2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2017-03-16 06:40:01 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "3.08";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "epstool";
|
2017-03-16 06:40:01 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ftp.de.debian.org/debian/pool/main/e/epstool/epstool_${version}+repack.orig.tar.gz";
|
|
|
|
sha256 = "1pfgqbipwk36clhma2k365jkpvyy75ahswn8jczzys382jalpwgk";
|
|
|
|
};
|
|
|
|
|
2021-03-17 10:53:25 +01:00
|
|
|
makeFlags = [
|
|
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
|
|
"CLINK=${stdenv.cc.targetPrefix}cc"
|
|
|
|
"LINK=${stdenv.cc.targetPrefix}cc"
|
|
|
|
];
|
|
|
|
|
2017-03-16 06:40:01 +01:00
|
|
|
installPhase = ''
|
|
|
|
make EPSTOOL_ROOT=$out install
|
|
|
|
'';
|
|
|
|
|
|
|
|
patches = [ ./gcc43.patch ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-03-16 06:40:01 +01:00
|
|
|
description = "A utility to create or extract preview images in EPS files, fix bounding boxes and convert to bitmaps";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://pages.cs.wisc.edu/~ghost/gsview/epstool.htm";
|
2017-03-16 06:40:01 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.asppsa ];
|
2021-03-17 10:53:25 +01:00
|
|
|
platforms = platforms.all;
|
2017-03-16 06:40:01 +01:00
|
|
|
};
|
|
|
|
}
|