about summary refs log tree commit diff
path: root/pkgs/development/libraries/libqglviewer/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/libqglviewer/default.nix')
-rw-r--r--pkgs/development/libraries/libqglviewer/default.nix32
1 files changed, 17 insertions, 15 deletions
diff --git a/pkgs/development/libraries/libqglviewer/default.nix b/pkgs/development/libraries/libqglviewer/default.nix
index 6b9d70fb6be2..c968fd352eb8 100644
--- a/pkgs/development/libraries/libqglviewer/default.nix
+++ b/pkgs/development/libraries/libqglviewer/default.nix
@@ -1,23 +1,25 @@
-args:
-args.stdenv.mkDerivation {
-  name = "libQGLviewer";
+{ stdenv, fetchurl, qt4 }:
 
-  src = args.fetchurl {
-    url = http://artis.imag.fr/Members/Gilles.Debunne/QGLViewer/src/libQGLViewer-2.2.6-3.tar.gz;
-    sha256 = "05vjl7af87dhzrdigm941by9c137g8wyca46h3pvhnmr4pgb0ic9";
+stdenv.mkDerivation rec {
+  name = "libQGLViewer-2.3.4";
+
+  src = fetchurl {
+    url = "http://www.libqglviewer.com/src/${name}.tar.gz";
+    sha256 = "01b9x2n3v5x3zkky2bjpgbhn5bglqn4gd7x5j5p7y2dw0jnzz7j0";
   };
 
-  buildInputs =(with args; [qt4]);
+  buildInputs = [ qt4 ];
 
-  buildPhase = "
-   cd QGLViewer
-   qmake PREFIX=\$out
-   make
-   ";
+  buildPhase =
+    ''
+      cd QGLViewer
+      qmake PREFIX=$out
+      make
+    '';
 
   meta = { 
-      description = "trackball-based 3D viewer qt widget including many useful features";
-      homepage = http://artis.imag.fr/Members/Gilles.Debunne/QGLViewer/installUnix.html;
-      license = "GPL2";
+    description = "trackball-based 3D viewer qt widget including many useful features";
+    homepage = http://artis.imag.fr/Members/Gilles.Debunne/QGLViewer/installUnix.html;
+    license = "GPL2";
   };
 }