depot/third_party/nixpkgs/pkgs/development/libraries/libqglviewer/default.nix
Default email 410b979fe2 Project import generated by Copybara.
GitOrigin-RevId: a64e169e396460d6b5763a1de1dd197df8421688
2023-03-24 01:07:29 +01:00

28 lines
695 B
Nix

{ lib, stdenv, fetchurl, qmake, qtbase, libGLU, AGL }:
stdenv.mkDerivation rec {
pname = "libqglviewer";
version = "2.8.0";
src = fetchurl {
url = "http://www.libqglviewer.com/src/libQGLViewer-${version}.tar.gz";
sha256 = "sha256-A9LTOUhmzcQZ9DcTrtgnJixxTMT6zd6nw7odk9rjxMw=";
};
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;
};
}