summary refs log tree commit diff
path: root/pkgs/development/libraries/imgui
diff options
context:
space:
mode:
authorP. R. d. O <d.ol.rod@protonmail.com>2021-12-12 15:29:29 -0600
committerP. R. d. O <d.ol.rod@protonmail.com>2021-12-12 15:29:29 -0600
commit03d3ea77984738f095b8867f4ae7354616b0fa17 (patch)
tree3c902e963e6866a537aed5dde274d9df1b29abbb /pkgs/development/libraries/imgui
parent6b8a78f5c00e154945885ceee2499c9d2a4a8df5 (diff)
imgui: init at 1.85
Diffstat (limited to 'pkgs/development/libraries/imgui')
-rw-r--r--pkgs/development/libraries/imgui/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/libraries/imgui/default.nix b/pkgs/development/libraries/imgui/default.nix
new file mode 100644
index 0000000000000..94dd9f95d390e
--- /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;
+  };
+}