depot/third_party/nixpkgs/pkgs/development/libraries/imgui/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

32 lines
772 B
Nix

{ stdenv, lib, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "imgui";
version = "1.90.5";
src = fetchFromGitHub {
owner = "ocornut";
repo = "imgui";
rev = "v${version}";
sha256 = "sha256-iTs8bcCAR8lvN1tcKmwyB3CcFmqR1QpqdGqdER920rM=";
};
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;
};
}