nixpkgs/pkgs/development/libraries/glui/default.nix

41 lines
879 B
Nix
Raw Normal View History

2019-11-24 10:13:31 +01:00
{ stdenv
, fetchurl
2019-11-22 08:14:32 +01:00
, freeglut
, libGL
, libGLU
, libX11
, libXext
, libXi
, libXmu
}:
stdenv.mkDerivation rec {
pname = "glui";
version = "2.36";
src = fetchurl {
url = "mirror://sourceforge/project/glui/Source/${version}/glui-${version}.tgz";
sha256 = "11r7f0k5jlbl825ibhm5c6bck0fn1hbliya9x1f253ikry1mxvy1";
};
buildInputs = [ freeglut libGLU libGL libXmu libXext libX11 libXi ];
2016-06-06 20:41:46 +02:00
preConfigure = ''cd src'';
2019-11-22 08:14:32 +01:00
2016-06-06 20:41:46 +02: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 08:14:32 +01:00
meta = with stdenv.lib; {
2016-06-06 20:41:46 +02:00
description = ''A user interface library using OpenGL'';
2019-11-22 08:14:32 +01:00
license = licenses.zlib ;
maintainers = [ maintainers.raskin ];
platforms = platforms.linux;
2016-06-06 20:41:46 +02:00
};
}