mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
f22a561402
This transitions from Qt4 to Qt5.
27 lines
679 B
Nix
27 lines
679 B
Nix
{ stdenv, fetchurl, qmake, qtbase, libGLU, AGL }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libqglviewer";
|
|
version = "2.7.1";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.libqglviewer.com/src/libQGLViewer-${version}.tar.gz";
|
|
sha256 = "08f10yk22kjdsvrqhd063gqa8nxnl749c20mwhaxij4f7rzdkixz";
|
|
};
|
|
|
|
nativeBuildInputs = [ qmake ];
|
|
buildInputs = [ qtbase libGLU ]
|
|
++ 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;
|
|
};
|
|
}
|