summary refs log tree commit diff
diff options
context:
space:
mode:
authorSymphorien Gibol <symphorien+git@xlumurb.eu>2020-04-11 12:00:00 +0000
committerSymphorien Gibol <symphorien+git@xlumurb.eu>2020-04-11 17:37:06 +0200
commitc8c318184592a74a3e83b5591f15af799dbe2c4d (patch)
treeea7b0d498031a6f23f519e1ac58678dbe1e58e13
parent5c72e8416984879bd7bd884a392b7c915c28171a (diff)
downloadnixpkgs-c8c318184592a74a3e83b5591f15af799dbe2c4d.tar
nixpkgs-c8c318184592a74a3e83b5591f15af799dbe2c4d.tar.gz
nixpkgs-c8c318184592a74a3e83b5591f15af799dbe2c4d.tar.bz2
nixpkgs-c8c318184592a74a3e83b5591f15af799dbe2c4d.tar.lz
nixpkgs-c8c318184592a74a3e83b5591f15af799dbe2c4d.tar.xz
nixpkgs-c8c318184592a74a3e83b5591f15af799dbe2c4d.tar.zst
nixpkgs-c8c318184592a74a3e83b5591f15af799dbe2c4d.zip
hdapsgl: 0.5.0 -> 0.7.0
We now package a fork on github because:
* gentoo does it
* the fork is owned by the same organisation as the one we take hdapsd
from.
-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 d2e4f3bb581..79f4d067b10 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 ];