depot/third_party/nixpkgs/pkgs/development/libraries/glui/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

40 lines
839 B
Nix

{ stdenv
, fetchFromGitHub
, freeglut
, libGL
, libGLU
, libX11
, libXext
, libXi
, libXmu
}:
stdenv.mkDerivation rec {
pname = "glui";
version = "2.37";
src = fetchFromGitHub {
owner = "libglui";
repo = "glui";
rev = version;
sha256 = "0qg2y8w95s03zay1qsqs8pqxxlg6l9kwm7rrs1qmx0h22sxb360i";
};
buildInputs = [ freeglut libGLU libGL libXmu libXext libX11 libXi ];
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"
'';
meta = with stdenv.lib; {
description = ''A user interface library using OpenGL'';
license = licenses.zlib ;
maintainers = [ maintainers.raskin ];
platforms = platforms.linux;
};
}