about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/AntTweakBar
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/AntTweakBar')
-rw-r--r--nixpkgs/pkgs/development/libraries/AntTweakBar/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/AntTweakBar/default.nix b/nixpkgs/pkgs/development/libraries/AntTweakBar/default.nix
new file mode 100644
index 000000000000..c26672c1dabc
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/AntTweakBar/default.nix
@@ -0,0 +1,33 @@
+{ lib, stdenv, fetchurl, unzip, xorg, libGLU, libGL }:
+
+stdenv.mkDerivation {
+  name = "AntTweakBar-1.16";
+
+  buildInputs = [ unzip xorg.libX11 libGLU libGL ];
+
+  src = fetchurl {
+    url = "mirror://sourceforge/project/anttweakbar/AntTweakBar_116.zip";
+    sha256 = "0z3frxpzf54cjs07m6kg09p7nljhr7140f4pznwi7srwq4cvgkpv";
+  };
+
+  postPatch = "cd src";
+  installPhase = ''
+    mkdir -p $out/lib/
+    cp ../lib/{libAntTweakBar.so,libAntTweakBar.so.1,libAntTweakBar.a} $out/lib/
+    cp -r ../include $out/
+  '';
+
+  meta = {
+    description = "Add a light/intuitive GUI to OpenGL applications";
+    longDescription = ''
+      A small and easy-to-use C/C++ library that allows to quickly add a light
+      and intuitive graphical user interface into graphic applications based on OpenGL
+      (compatibility and core profiles), DirectX 9, DirectX 10 or DirectX 11
+      to interactively tweak parameters on-screen
+    '';
+    homepage = "http://anttweakbar.sourceforge.net/";
+    license = lib.licenses.zlib;
+    maintainers = [ lib.maintainers.razvan ];
+    platforms = lib.platforms.linux;
+  };
+}