2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2019-12-06 09:06:10 +00:00
|
|
|
, fetchFromGitHub
|
2019-11-22 07:14:32 +00:00
|
|
|
, freeglut
|
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, libX11
|
|
|
|
, libXext
|
|
|
|
, libXi
|
|
|
|
, libXmu
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "glui";
|
2019-12-06 09:06:10 +00:00
|
|
|
version = "2.37";
|
2019-11-22 07:14:32 +00:00
|
|
|
|
2019-12-06 09:06:10 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libglui";
|
|
|
|
repo = "glui";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0qg2y8w95s03zay1qsqs8pqxxlg6l9kwm7rrs1qmx0h22sxb360i";
|
2019-11-22 07:14:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ freeglut libGLU libGL libXmu libXext libX11 libXi ];
|
|
|
|
|
2016-06-06 19:41:46 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out"/{bin,lib,share/glui/doc,include}
|
|
|
|
cp -rT bin "$out/bin"
|
|
|
|
cp -rT lib "$out/lib"
|
|
|
|
cp -rT include "$out/include"
|
|
|
|
cp -rT doc "$out/share/glui/doc"
|
|
|
|
cp LICENSE.txt "$out/share/glui/doc"
|
|
|
|
'';
|
2019-11-22 07:14:32 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2021-01-24 09:19:10 +00:00
|
|
|
description = "A user interface library using OpenGL";
|
2019-11-22 07:14:32 +00:00
|
|
|
license = licenses.zlib ;
|
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.linux;
|
2016-06-06 19:41:46 +01:00
|
|
|
};
|
|
|
|
}
|