nixpkgs-immich/pkgs/by-name/im/implot/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
797 B
Nix
Raw Normal View History

2024-09-17 10:23:40 -06:00
{
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;
};
}