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