2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, qmake, qtbase, libGLU, AGL }:
|
2008-06-08 04:56:32 +01:00
|
|
|
|
2009-10-28 14:06:56 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-05-18 04:49:05 +01:00
|
|
|
pname = "libqglviewer";
|
2019-12-23 21:05:03 +00:00
|
|
|
version = "2.7.2";
|
2009-10-28 14:06:56 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-08-26 09:20:06 +01:00
|
|
|
url = "http://www.libqglviewer.com/src/libQGLViewer-${version}.tar.gz";
|
2019-12-23 21:05:03 +00:00
|
|
|
sha256 = "023w7da1fyn2z69nbkp2rndiv886zahmc5cmira79zswxjfpklp2";
|
2008-06-08 04:56:32 +01:00
|
|
|
};
|
|
|
|
|
2019-05-18 04:49:05 +01:00
|
|
|
nativeBuildInputs = [ qmake ];
|
|
|
|
buildInputs = [ qtbase libGLU ]
|
2021-01-21 17:00:13 +00:00
|
|
|
++ lib.optional stdenv.isDarwin AGL;
|
2008-06-08 04:56:32 +01:00
|
|
|
|
2019-05-18 04:49:05 +01:00
|
|
|
postPatch = ''
|
|
|
|
cd QGLViewer
|
|
|
|
'';
|
2008-06-08 04:56:32 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2015-08-26 09:19:28 +01:00
|
|
|
description = "C++ library based on Qt that eases the creation of OpenGL 3D viewers";
|
2019-05-18 04:49:05 +01:00
|
|
|
homepage = "http://libqglviewer.com";
|
2015-08-26 09:19:28 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.all;
|
2008-06-08 04:56:32 +01:00
|
|
|
};
|
|
|
|
}
|