Files
nixpkgs/pkgs/by-name/an/anttweakbar/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

50 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchurl,
unzip,
xorg,
libGLU,
libGL,
}:
stdenv.mkDerivation rec {
pname = "AntTweakBar";
version = "1.16";
nativeBuildInputs = [ unzip ];
buildInputs = [
xorg.libX11
libGLU
libGL
];
src = fetchurl {
url = "mirror://sourceforge/project/anttweakbar/AntTweakBar_${
lib.replaceStrings [ "." ] [ "" ] version
}.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 = "https://anttweakbar.sourceforge.net/";
license = lib.licenses.zlib;
maintainers = [ lib.maintainers.razvan ];
platforms = lib.platforms.linux;
};
}