Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 callPackage, 6 cmake, 7 vcpkg, 8 imgui, 9}: 10 11stdenv.mkDerivation rec { 12 pname = "implot"; 13 version = "0.16"; 14 15 src = fetchFromGitHub { 16 owner = "epezent"; 17 repo = "implot"; 18 rev = "v${version}"; 19 hash = "sha256-/wkVsgz3wiUVZBCgRl2iDD6GWb+AoHN+u0aeqHHgem0="; 20 }; 21 22 cmakeRules = "${vcpkg.src}/ports/implot"; 23 postPatch = '' 24 cp "$cmakeRules"/CMakeLists.txt ./ 25 ''; 26 27 buildInputs = [ imgui ]; 28 nativeBuildInputs = [ cmake ]; 29 30 passthru.tests = { 31 implot-demos = callPackage ./demos { }; 32 }; 33 34 meta = { 35 description = "Immediate Mode Plotting"; 36 homepage = "https://github.com/epezent/implot"; 37 license = lib.licenses.mit; 38 maintainers = with lib.maintainers; [ SomeoneSerge ]; 39 platforms = lib.platforms.all; 40 }; 41}