Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 pname = "imgui"; 5 version = "1.89.5"; 6 7 src = fetchFromGitHub { 8 owner = "ocornut"; 9 repo = "imgui"; 10 rev = "v${version}"; 11 sha256 = "sha256-Ha70CTSBpyF9S+/qG9lAhUlUT4vY0crOoi3vFsy65H8="; 12 }; 13 14 dontBuild = true; 15 16 installPhase = '' 17 mkdir -p $out/include/imgui 18 19 cp *.h $out/include/imgui 20 cp *.cpp $out/include/imgui 21 cp -a backends $out/include/imgui/ 22 cp -a misc $out/include/imgui/ 23 ''; 24 25 meta = with lib; { 26 description = "Bloat-free Graphical User interface for C++ with minimal dependencies"; 27 homepage = "https://github.com/ocornut/imgui"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ wolfangaukang ]; 30 platforms = platforms.all; 31 }; 32}