{ stdenv, fetchurl, qt4 }: stdenv.mkDerivation rec { name = "libQGLViewer-2.6.3"; src = fetchurl { url = "http://www.libqglviewer.com/src/${name}.tar.gz"; sha256 = "00jdkyk4wg1356c3ar6nk3hyp494ya3yvshq9m57kfmqpn3inqdy"; }; buildInputs = [ qt4 ]; buildPhase = '' cd QGLViewer qmake PREFIX=$out make ''; meta = with stdenv.lib; { description = "C++ library based on Qt that eases the creation of OpenGL 3D viewers"; homepage = http://libqglviewer.com/; license = licenses.gpl2; platforms = platforms.all; }; }