7d542a9f98
GitOrigin-RevId: b72b8b94cf0c012b0252a9100a636cad69696666
32 lines
772 B
Nix
32 lines
772 B
Nix
{ stdenv, lib, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "imgui";
|
|
version = "1.89.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ocornut";
|
|
repo = "imgui";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-wIkbluNGiK5HPmFaS5o2tZt/kPcqcXup+V2jnQQDSd0=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|