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