about summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorBenjamin Hipple <bhipple@protonmail.com>2020-04-12 13:55:24 -0400
committerGitHub <noreply@github.com>2020-04-12 13:55:24 -0400
commit6cfcc4126871cd575f1050327bca7679059bdd44 (patch)
treee883d9390cd0a26ee70b735f4e5dbbeb5fc0401d /pkgs/tools
parentbd4145016d137310be083a5e11062fdd2e07ba77 (diff)
parentc8c318184592a74a3e83b5591f15af799dbe2c4d (diff)
downloadnixlib-6cfcc4126871cd575f1050327bca7679059bdd44.tar
nixlib-6cfcc4126871cd575f1050327bca7679059bdd44.tar.gz
nixlib-6cfcc4126871cd575f1050327bca7679059bdd44.tar.bz2
nixlib-6cfcc4126871cd575f1050327bca7679059bdd44.tar.lz
nixlib-6cfcc4126871cd575f1050327bca7679059bdd44.tar.xz
nixlib-6cfcc4126871cd575f1050327bca7679059bdd44.tar.zst
nixlib-6cfcc4126871cd575f1050327bca7679059bdd44.zip
Merge pull request #85005 from symphorien/update-hdapsgl
hdapsgl: 0.5.0 -> 0.7.0
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/misc/hdaps-gl/default.nix20
1 files changed, 9 insertions, 11 deletions
diff --git a/pkgs/tools/misc/hdaps-gl/default.nix b/pkgs/tools/misc/hdaps-gl/default.nix
index d2e4f3bb5819..79f4d067b108 100644
--- a/pkgs/tools/misc/hdaps-gl/default.nix
+++ b/pkgs/tools/misc/hdaps-gl/default.nix
@@ -1,24 +1,22 @@
-{ stdenv, fetchzip, freeglut, libGL, libGLU }:
+{ stdenv, fetchFromGitHub, autoreconfHook, freeglut, libGL, libGLU }:
 
-let version = "0.0.5"; in
+let version = "0.0.7"; in
 stdenv.mkDerivation {
       pname = "hdaps-gl";
       inherit version;
-      src = fetchzip {
-            url = "mirror://sourceforge/project/hdaps/hdaps-gl/hdaps-gl-${version}/hdaps-gl-${version}.tar.gz";
-            sha256 = "16fk4k0lvr4c95vd6c7qdylcqa1h5yjp3xm4xwipdjbp0bvsgxq4";
+      src = fetchFromGitHub {
+            owner = "linux-thinkpad";
+            repo = "hdaps-gl";
+            rev = version;
+            sha256 = "0jywsrcr1wzkjig5cvz014c3r026sbwscbkv7zh1014lkjm0kyyh";
       };
 
+      nativeBuildInputs = [ autoreconfHook ];
       buildInputs = [ freeglut libGL libGLU ];
 
-      # the Makefile has no install target
-      installPhase = ''
-            install -Dt $out/bin ./hdaps-gl
-      '';
-
       meta = with stdenv.lib; {
             description = "GL-based laptop model that rotates in real-time via hdaps";
-            homepage = "https://sourceforge.net/projects/hdaps/";
+            homepage = "https://github.com/linux-thinkpad/hdaps-gl";
             license = licenses.gpl2;
             platforms = platforms.linux;
             maintainers = [ maintainers.symphorien ];