2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-08-20 17:08:02 +00:00
|
|
|
, fetchurl
|
|
|
|
, cmake
|
|
|
|
, zlib
|
2023-07-15 17:15:38 +00:00
|
|
|
, libpng
|
2020-08-20 17:08:02 +00:00
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, freeglut
|
2023-07-15 17:15:38 +00:00
|
|
|
, darwin
|
2020-08-20 17:08:02 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gl2ps";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "1.4.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://geuz.org/gl2ps/src/${pname}-${version}.tgz";
|
2020-05-15 21:57:56 +00:00
|
|
|
sha256 = "1sgzv547h7hrskb9qd0x5yp45kmhvibjwj2mfswv95lg070h074d";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
nativeBuildInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
cmake
|
2020-08-20 17:08:02 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
zlib
|
2023-07-15 17:15:38 +00:00
|
|
|
libpng
|
|
|
|
] ++ lib.optionals (!stdenv.isDarwin) [
|
2020-04-24 23:36:52 +00:00
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
freeglut
|
2023-07-15 17:15:38 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.OpenGL
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://geuz.org/gl2ps";
|
|
|
|
description = "An OpenGL to PostScript printing library";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.lgpl2;
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = with maintainers; [ raskin twhitehead ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|