Commit 4dcb3055 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

libqglviewer: clean

parent 9dc66d61
Loading
Loading
Loading
Loading
+12 −10
Original line number Diff line number Diff line
{ lib, stdenv, fetchurl, qmake, qtbase, libGLU, AGL }:
{ lib, stdenv, fetchFromGitHub, qmake, qtbase, libGLU, AGL }:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "libqglviewer";
  version = "2.9.1";

  src = fetchurl {
    url = "http://www.libqglviewer.com/src/libQGLViewer-${version}.tar.gz";
    sha256 = "sha256-J4+DKgstPvvg1pUhGd+8YFh5C3oPGHaQmDfLZzzkP/M=";
  src = fetchFromGitHub {
    owner = "GillesDebunne";
    repo = "libQGLViewer";
    tag = "v${finalAttrs.version}";
    hash = "sha256-T8KAcw3cXbp0FZm53OjlQBnUvLRFdoj80dIQzQY0/yw=";
  };

  nativeBuildInputs = [ qmake ];
@@ -19,10 +21,10 @@ stdenv.mkDerivation rec {
    cd QGLViewer
  '';

  meta = with lib; {
  meta = {
    description = "C++ library based on Qt that eases the creation of OpenGL 3D viewers";
    homepage = "http://libqglviewer.com";
    license = licenses.gpl2;
    platforms = platforms.all;
    homepage = "https://github.com/GillesDebunne/libQGLViewer";
    license = lib.licenses.gpl2;
    platforms = lib.platforms.all;
  };
}
})