mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
c2ca5c057d
/cc ZHF #36454
27 lines
653 B
Nix
27 lines
653 B
Nix
{ stdenv, fetchurl, qt4, qmake4Hook, AGL }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libqglviewer-2.6.3";
|
|
version = "2.6.3";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.libqglviewer.com/src/libQGLViewer-${version}.tar.gz";
|
|
sha256 = "00jdkyk4wg1356c3ar6nk3hyp494ya3yvshq9m57kfmqpn3inqdy";
|
|
};
|
|
|
|
buildInputs = [ qt4 qmake4Hook ]
|
|
++ stdenv.lib.optional stdenv.isDarwin AGL;
|
|
|
|
postPatch =
|
|
''
|
|
cd QGLViewer
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|