nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 35 lines 1.2 kB view raw
1{ lib, stdenv, fetchurl, unzip, xorg, libGLU, libGL }: 2 3stdenv.mkDerivation rec { 4 pname = "AntTweakBar"; 5 version = "1.16"; 6 7 nativeBuildInputs = [ unzip ]; 8 buildInputs = [ xorg.libX11 libGLU libGL ]; 9 10 src = fetchurl { 11 url = "mirror://sourceforge/project/anttweakbar/AntTweakBar_${lib.replaceStrings ["."] [""] version}.zip"; 12 sha256 = "0z3frxpzf54cjs07m6kg09p7nljhr7140f4pznwi7srwq4cvgkpv"; 13 }; 14 15 postPatch = "cd src"; 16 installPhase = '' 17 mkdir -p $out/lib/ 18 cp ../lib/{libAntTweakBar.so,libAntTweakBar.so.1,libAntTweakBar.a} $out/lib/ 19 cp -r ../include $out/ 20 ''; 21 22 meta = { 23 description = "Add a light/intuitive GUI to OpenGL applications"; 24 longDescription = '' 25 A small and easy-to-use C/C++ library that allows to quickly add a light 26 and intuitive graphical user interface into graphic applications based on OpenGL 27 (compatibility and core profiles), DirectX 9, DirectX 10 or DirectX 11 28 to interactively tweak parameters on-screen 29 ''; 30 homepage = "http://anttweakbar.sourceforge.net/"; 31 license = lib.licenses.zlib; 32 maintainers = [ lib.maintainers.razvan ]; 33 platforms = lib.platforms.linux; 34 }; 35}