7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
44 lines
824 B
Nix
44 lines
824 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, cmake
|
|
, zlib
|
|
, libpng
|
|
, libGL
|
|
, libGLU
|
|
, libglut
|
|
, 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.hostPlatform.isDarwin) [
|
|
libGL
|
|
libGLU
|
|
libglut
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
darwin.apple_sdk.frameworks.OpenGL
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "http://geuz.org/gl2ps";
|
|
description = "OpenGL to PostScript printing library";
|
|
platforms = platforms.all;
|
|
license = licenses.lgpl2;
|
|
maintainers = with maintainers; [ raskin twhitehead ];
|
|
};
|
|
}
|