Merge pull request #150453 from WolfangAukang/imgui

imgui: init at 1.85
This commit is contained in:
Marek Fajkus 2021-12-12 23:14:25 +01:00 committed by GitHub
commit b0bf5f888d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,32 @@
{ stdenv, lib, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "imgui";
version = "1.85";
src = fetchFromGitHub {
owner = "ocornut";
repo = "imgui";
rev = "v${version}";
sha256 = "sha256-HQsGlsvmf3ikqhGnJHf/d6SRCY/QDeW7XUTwXQH/JYE=";
};
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;
};
}

View file

@ -17087,6 +17087,8 @@ with pkgs;
ilmbase = callPackage ../development/libraries/ilmbase { };
imgui = callPackage ../development/libraries/imgui { };
imlib = callPackage ../development/libraries/imlib {
libpng = libpng12;
};