2021-12-12 21:29:29 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "imgui";
|
2021-12-30 16:30:49 +00:00
|
|
|
version = "1.86";
|
2021-12-12 21:29:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocornut";
|
|
|
|
repo = "imgui";
|
|
|
|
rev = "v${version}";
|
2021-12-30 16:30:49 +00:00
|
|
|
sha256 = "sha256-NuyWrtD+/bRkMlsvU0gNkQhDJVlSPPWhBELN/AtYRwk=";
|
2021-12-12 21:29:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/include/imgui
|
|
|
|
|
|
|
|
cp *.h $out/include/imgui
|
|
|
|
cp *.cpp $out/include/imgui
|
|
|
|
cp -a backends $out/include/imgui/
|
|
|
|
cp -a misc $out/include/imgui/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Bloat-free Graphical User interface for C++ with minimal dependencies";
|
|
|
|
homepage = "https://github.com/ocornut/imgui";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ wolfangaukang ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|