at 24.11-pre 28 lines 695 B view raw
1{ lib, stdenv, fetchurl, qmake, qtbase, libGLU, AGL }: 2 3stdenv.mkDerivation rec { 4 pname = "libqglviewer"; 5 version = "2.9.1"; 6 7 src = fetchurl { 8 url = "http://www.libqglviewer.com/src/libQGLViewer-${version}.tar.gz"; 9 sha256 = "sha256-J4+DKgstPvvg1pUhGd+8YFh5C3oPGHaQmDfLZzzkP/M="; 10 }; 11 12 nativeBuildInputs = [ qmake ]; 13 buildInputs = [ qtbase libGLU ] 14 ++ lib.optional stdenv.isDarwin AGL; 15 16 dontWrapQtApps = true; 17 18 postPatch = '' 19 cd QGLViewer 20 ''; 21 22 meta = with lib; { 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; 27 }; 28}