about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/graphics/fig2dev/default.nix
blob: ae38730226a46e4d55516ac802b8ba881faa6406 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchurl, ghostscript, libpng } :

let
  version = "3.2.7a";

in stdenv.mkDerivation {
  pname = "fig2dev";
  inherit version;

  src = fetchurl {
    url = "mirror://sourceforge/mcj/fig2dev-${version}.tar.xz";
    sha256 = "0a7vkfl38fvkhg3na5gr9c4fskas9wbs84y9djg85nzwbshik8mx";
  };

  buildInputs = [ libpng ];

  GSEXE="${ghostscript}/bin/gs";

  meta = with stdenv.lib; {
    description = "Tool to convert Xfig files to other formats";
    homepage = http://mcj.sourceforge.net/;
    license = licenses.xfig;
    platforms = platforms.linux;
  };
}