mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
33 lines
772 B
Nix
33 lines
772 B
Nix
{ stdenv, lib, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "imgui";
|
|
version = "1.89.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ocornut";
|
|
repo = "imgui";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Ha70CTSBpyF9S+/qG9lAhUlUT4vY0crOoi3vFsy65H8=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|