From 03d3ea77984738f095b8867f4ae7354616b0fa17 Mon Sep 17 00:00:00 2001 From: "P. R. d. O" Date: Sun, 12 Dec 2021 15:29:29 -0600 Subject: [PATCH] imgui: init at 1.85 --- pkgs/development/libraries/imgui/default.nix | 32 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/libraries/imgui/default.nix diff --git a/pkgs/development/libraries/imgui/default.nix b/pkgs/development/libraries/imgui/default.nix new file mode 100644 index 000000000000..94dd9f95d390 --- /dev/null +++ b/pkgs/development/libraries/imgui/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 87fa52f4d360..ef0e6c35a201 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17087,6 +17087,8 @@ with pkgs; ilmbase = callPackage ../development/libraries/ilmbase { }; + imgui = callPackage ../development/libraries/imgui { }; + imlib = callPackage ../development/libraries/imlib { libpng = libpng12; };