1{
2 lib,
3 stdenv,
4 fetchurl,
5}:
6
7stdenv.mkDerivation rec {
8 version = "3.09";
9 pname = "epstool";
10
11 src = fetchurl {
12 url = "http://ftp.de.debian.org/debian/pool/main/e/epstool/epstool_${version}.orig.tar.xz";
13 hash = "sha256-HoUknRpE+UGLH5Wjrr2LB4TauOSd62QXrJuZbKCPYBE=";
14 };
15
16 makeFlags = [
17 "CC=${stdenv.cc.targetPrefix}cc"
18 "CLINK=${stdenv.cc.targetPrefix}cc"
19 "LINK=${stdenv.cc.targetPrefix}cc"
20 ];
21
22 installPhase = ''
23 make EPSTOOL_ROOT=$out install
24 '';
25
26 meta = with lib; {
27 description = "Utility to create or extract preview images in EPS files, fix bounding boxes and convert to bitmaps";
28 homepage = "http://pages.cs.wisc.edu/~ghost/gsview/epstool.htm";
29 license = licenses.gpl2Only;
30 maintainers = [ maintainers.asppsa ];
31 platforms = platforms.all;
32 mainProgram = "epstool";
33 };
34}