diff --git a/pkgs/development/libraries/glui/default.nix b/pkgs/development/libraries/glui/default.nix new file mode 100644 index 000000000000..35d97712fa40 --- /dev/null +++ b/pkgs/development/libraries/glui/default.nix @@ -0,0 +1,24 @@ +{stdenv, fetchurl, freeglut, mesa, libXmu, libXext, libX11, libXi}: +stdenv.mkDerivation { + name = "glui-2.35"; + buildInputs = [freeglut mesa libXmu libXext libX11 libXi]; + preConfigure = ''cd src''; + 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" + ''; + src = fetchurl { + url = "mirror://sourceforge/project/glui/Source/2.36/glui-2.36.tgz"; + sha256 = "11r7f0k5jlbl825ibhm5c6bck0fn1hbliya9x1f253ikry1mxvy1"; + }; + meta = { + description = ''A user interface library using OpenGL''; + license = stdenv.lib.licenses.zlib ; + maintainers = [stdenv.lib.maintainers.raskin]; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c05e16ace56d..27a935eed119 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7131,6 +7131,8 @@ in camlimages = ocamlPackages.camlimages_4_0; }; + glui = callPackage ../development/libraries/glui {}; + gmime = callPackage ../development/libraries/gmime { }; gmm = callPackage ../development/libraries/gmm { };