mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
42 lines
795 B
Nix
42 lines
795 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 = with lib; {
|
|
description = "Immediate Mode Plotting";
|
|
homepage = "https://github.com/epezent/implot";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ SomeoneSerge ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|