about summary refs log tree commit diff
path: root/pkgs/tools/graphics/twilight/default.nix
blob: 52941f7b96d7f193ff8e266760e5409fc8ca1157 (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
27
28
29
{ lib, stdenv, fetchFromGitHub
, libGL, libGLU, freeglut, libX11 }:

stdenv.mkDerivation rec {
  pname = "twilight";
  version = "unstable-2018-04-19";

  src = fetchFromGitHub {
    owner = "tweakoz";
    repo = "twilight";
    rev = "43f21d15c2a8923c9d707bdf3789f480bfd4b36d";
    sha256 = "0mmmi4jj8yd8wnah6kx5na782sjycszgzim33dfalr0ph361m4pz";
  };

  buildInputs = [ libGL libGLU freeglut libX11 ];

  installPhase = ''
    install -Dm755 twilight $out/bin/twilight
  '';

  meta = with lib; {
    description = "Redo of IRIX twilight backdrop in old school OpenGL";
    homepage = src.meta.homepage;
    license = licenses.mit;
    platforms = platforms.linux;
    maintainers = with maintainers; [ ];
    mainProgram = "twilight";
  };
}