summary refs log tree commit diff
path: root/pkgs/tools/graphics/glee/default.nix
blob: a68e64c0894c5fd8357b160ce9a1a3c7c97f3796 (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
30
31
32
33
{stdenv, fetchgit, cmake, libGLU, libGL, xorg }:

stdenv.mkDerivation rec {
  pname = "glee";
  rev = "f727ec7463d514b6279981d12833f2e11d62b33d";
  version = "20170205-${stdenv.lib.strings.substring 0 7 rev}";

  src = fetchgit {
    inherit rev;
    url = "https://git.code.sf.net/p/${pname}/${pname}";
    sha256 = "13mf3s7nvmj26vr2wbcg08l4xxqsc1ha41sx3bfghvq8c5qpk2ph";
  };

  nativeBuildInputs = [ cmake ];

  buildInputs = [ libGLU libGL xorg.libX11 ];

  configureScript = ''
    cmake
  '';

  preInstall = ''
    sed -i 's/readme/Readme/' cmake_install.cmake
  '';

  meta = with stdenv.lib; {
    description = "GL Easy Extension Library";
    homepage = https://sourceforge.net/p/glee/glee/;
    maintainers = with maintainers; [ nand0p ];
    platforms = platforms.linux;
    license = licenses.gpl3;
  };
}