fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
41 lines
797 B
Nix
41 lines
797 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
callPackage,
|
|
cmake,
|
|
vcpkg,
|
|
imgui,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "implot";
|
|
version = "0.16";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "epezent";
|
|
repo = "implot";
|
|
rev = "v${version}";
|
|
hash = "sha256-/wkVsgz3wiUVZBCgRl2iDD6GWb+AoHN+u0aeqHHgem0=";
|
|
};
|
|
|
|
cmakeRules = "${vcpkg.src}/ports/implot";
|
|
postPatch = ''
|
|
cp "$cmakeRules"/CMakeLists.txt ./
|
|
'';
|
|
|
|
buildInputs = [ imgui ];
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
passthru.tests = {
|
|
implot-demos = callPackage ./demos { };
|
|
};
|
|
|
|
meta = {
|
|
description = "Immediate Mode Plotting";
|
|
homepage = "https://github.com/epezent/implot";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ SomeoneSerge ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|