3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/hdaps-gl/default.nix

27 lines
865 B
Nix
Raw Normal View History

2018-09-03 23:28:15 +01:00
{ stdenv, fetchzip, freeglut, libGL, libGLU }:
let version = "0.0.5"; in
stdenv.mkDerivation {
2019-08-13 22:52:01 +01:00
pname = "hdaps-gl";
inherit version;
2018-09-03 23:28:15 +01:00
src = fetchzip {
url = "mirror://sourceforge/project/hdaps/hdaps-gl/hdaps-gl-${version}/hdaps-gl-${version}.tar.gz";
sha256 = "16fk4k0lvr4c95vd6c7qdylcqa1h5yjp3xm4xwipdjbp0bvsgxq4";
};
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/";
2018-09-03 23:28:15 +01:00
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.symphorien ];
};
}