summary refs log tree commit diff
path: root/pkgs/tools/misc/hdaps-gl/default.nix
blob: af4d4228c2c64d114188c4d6ca7597b0d2e4ad72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchzip, freeglut, libGL, libGLU }:

let version = "0.0.5"; 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";
      };

      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/;
            license = licenses.gpl2;
            platforms = platforms.linux;
            maintainers = [ maintainers.symphorien ];
      };
}