diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libqglviewer')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libqglviewer/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libqglviewer/default.nix b/nixpkgs/pkgs/development/libraries/libqglviewer/default.nix new file mode 100644 index 000000000000..fd10ccc5375c --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libqglviewer/default.nix @@ -0,0 +1,28 @@ +{ lib, stdenv, fetchurl, qmake, qtbase, libGLU, AGL }: + +stdenv.mkDerivation rec { + pname = "libqglviewer"; + version = "2.9.1"; + + src = fetchurl { + url = "http://www.libqglviewer.com/src/libQGLViewer-${version}.tar.gz"; + sha256 = "sha256-J4+DKgstPvvg1pUhGd+8YFh5C3oPGHaQmDfLZzzkP/M="; + }; + + nativeBuildInputs = [ qmake ]; + buildInputs = [ qtbase libGLU ] + ++ lib.optional stdenv.isDarwin AGL; + + dontWrapQtApps = true; + + postPatch = '' + cd QGLViewer + ''; + + meta = with 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; + }; +} |