mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #150453 from WolfangAukang/imgui
imgui: init at 1.85
This commit is contained in:
commit
b0bf5f888d
2 changed files with 34 additions and 0 deletions
32
pkgs/development/libraries/imgui/default.nix
Normal file
32
pkgs/development/libraries/imgui/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -17087,6 +17087,8 @@ with pkgs;
|
|||
|
||||
ilmbase = callPackage ../development/libraries/ilmbase { };
|
||||
|
||||
imgui = callPackage ../development/libraries/imgui { };
|
||||
|
||||
imlib = callPackage ../development/libraries/imlib {
|
||||
libpng = libpng12;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue