Skip to content

Commit 4dcb305

Browse files
nim65sniklaskorz
andcommitted
libqglviewer: clean
Co-authored-by: Niklas Korz <[email protected]>
1 parent 9dc66d6 commit 4dcb305

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed
Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
{ lib, stdenv, fetchurl, qmake, qtbase, libGLU, AGL }:
1+
{ lib, stdenv, fetchFromGitHub, qmake, qtbase, libGLU, AGL }:
22

3-
stdenv.mkDerivation rec {
3+
stdenv.mkDerivation (finalAttrs: {
44
pname = "libqglviewer";
55
version = "2.9.1";
66

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

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

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

0 commit comments

Comments
 (0)