summary refs log tree commit diff
path: root/pkgs/development/libraries/gl2ps/default.nix
blob: 2a02b5d767e0635289a5fba584914ec37ad673dd (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ lib
, stdenv
, fetchurl
, cmake
, zlib
, libpng
, libGL
, libGLU
, freeglut
, darwin
}:

stdenv.mkDerivation rec {
  pname = "gl2ps";
  version = "1.4.2";

  src = fetchurl {
    url = "http://geuz.org/gl2ps/src/${pname}-${version}.tgz";
    sha256 = "1sgzv547h7hrskb9qd0x5yp45kmhvibjwj2mfswv95lg070h074d";
  };

  nativeBuildInputs = [
    cmake
  ];

  buildInputs = [
    zlib
    libpng
  ] ++ lib.optionals (!stdenv.isDarwin) [
    libGL
    libGLU
    freeglut
  ] ++ lib.optionals stdenv.isDarwin [
    darwin.apple_sdk.frameworks.OpenGL
  ];

  meta = with lib; {
    homepage = "http://geuz.org/gl2ps";
    description = "An OpenGL to PostScript printing library";
    platforms = platforms.all;
    license = licenses.lgpl2;
    maintainers = with maintainers; [ raskin twhitehead ];
  };
}