2023-05-29 13:39:15 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2019-10-21 01:01:29 +00:00
|
|
|
, fetchurl
|
|
|
|
, cmake
|
|
|
|
, zlib
|
2023-05-29 13:39:15 +00:00
|
|
|
, libpng
|
2019-10-21 01:01:29 +00:00
|
|
|
, libGL
|
|
|
|
, libGLU
|
2024-06-20 04:39:23 +00:00
|
|
|
, libglut
|
2023-05-29 13:39:15 +00:00
|
|
|
, darwin
|
2019-10-21 01:01:29 +00:00
|
|
|
}:
|
2019-07-09 18:32:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "gl2ps";
|
2019-10-21 01:01:29 +00:00
|
|
|
version = "1.4.2";
|
2019-07-09 18:32:13 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "http://geuz.org/gl2ps/src/${pname}-${version}.tgz";
|
2020-05-05 10:38:47 +00:00
|
|
|
sha256 = "1sgzv547h7hrskb9qd0x5yp45kmhvibjwj2mfswv95lg070h074d";
|
2019-07-09 18:32:13 +00:00
|
|
|
};
|
|
|
|
|
2019-10-21 01:01:29 +00:00
|
|
|
nativeBuildInputs = [
|
2019-07-09 18:32:13 +00:00
|
|
|
cmake
|
2019-10-21 01:01:29 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2019-07-09 18:32:13 +00:00
|
|
|
zlib
|
2023-05-29 13:39:15 +00:00
|
|
|
libpng
|
|
|
|
] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
|
2019-07-09 18:32:13 +00:00
|
|
|
libGL
|
|
|
|
libGLU
|
2024-06-20 04:39:23 +00:00
|
|
|
libglut
|
2023-05-29 13:39:15 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.OpenGL
|
2019-07-09 18:32:13 +00:00
|
|
|
];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-05 18:05:33 +00:00
|
|
|
homepage = "http://geuz.org/gl2ps";
|
2019-07-09 18:32:13 +00:00
|
|
|
description = "OpenGL to PostScript printing library";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.lgpl2;
|
2023-05-29 13:39:15 +00:00
|
|
|
maintainers = with maintainers; [ raskin twhitehead ];
|
2019-07-09 18:32:13 +00:00
|
|
|
};
|
|
|
|
}
|