parent
6b8a78f5c0
commit
03d3ea7798
@ -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; |
||||
}; |
||||
} |
Loading…
Reference in new issue