2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "3.09";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "epstool";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2023-10-09 19:29:22 +00:00
|
|
|
url = "http://ftp.de.debian.org/debian/pool/main/e/epstool/epstool_${version}.orig.tar.xz";
|
|
|
|
hash = "sha256-HoUknRpE+UGLH5Wjrr2LB4TauOSd62QXrJuZbKCPYBE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
makeFlags = [
|
|
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
|
|
"CLINK=${stdenv.cc.targetPrefix}cc"
|
|
|
|
"LINK=${stdenv.cc.targetPrefix}cc"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
|
|
|
make EPSTOOL_ROOT=$out install
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A utility to create or extract preview images in EPS files, fix bounding boxes and convert to bitmaps";
|
|
|
|
homepage = "http://pages.cs.wisc.edu/~ghost/gsview/epstool.htm";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.asppsa ];
|
2021-03-19 17:17:44 +00:00
|
|
|
platforms = platforms.all;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "epstool";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|