summary refs log tree commit diff
path: root/pkgs/development/libraries/libqglviewer/default.nix
blob: e68c5052beb8bb6b39126d35f9221b4c5a81e843 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ 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;
  };
}