Merge pull request #85005 from symphorien/update-hdapsgl

hdapsgl: 0.5.0 -> 0.7.0
This commit is contained in:
Benjamin Hipple 2020-04-12 13:55:24 -04:00 committed by GitHub
commit 6cfcc41268
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 ];