1 { lib, stdenv, fetchurl, qmake, qtbase, libGLU, AGL }:
3 stdenv.mkDerivation rec {
4 pname = "libqglviewer";
8 url = "http://www.libqglviewer.com/src/libQGLViewer-${version}.tar.gz";
9 sha256 = "sha256-J4+DKgstPvvg1pUhGd+8YFh5C3oPGHaQmDfLZzzkP/M=";
12 nativeBuildInputs = [ qmake ];
13 buildInputs = [ qtbase libGLU ]
14 ++ lib.optional stdenv.isDarwin AGL;
16 dontWrapQtApps = true;
23 description = "C++ library based on Qt that eases the creation of OpenGL 3D viewers";
24 homepage = "http://libqglviewer.com";
25 license = licenses.gpl2;
26 platforms = platforms.all;