Files
nixpkgs/pkgs/by-name/im/imnodes/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

58 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
imgui,
SDL2,
xorg,
imnodes,
withExamples ? false,
}:
stdenv.mkDerivation {
pname = "imnodes";
version = "unstable-2024-03-12";
outputs = [
"out"
"dev"
];
src = fetchFromGitHub {
owner = "Nelarius";
repo = "imnodes";
rev = "8563e1655bd9bb1f249e6552cc6274d506ee788b";
hash = "sha256-E7NNCxYq9dyVvutWbpl2a+D2Ap2ErvdYHBDqpX0kb0c=";
};
patches = [
# CMake install rules
(fetchpatch {
url = "https://github.com/Nelarius/imnodes/commit/ff20336fcd82ce07c39fabd76d5bc9fa0a08b3bc.patch";
hash = "sha256-JHOUjwMofDwt2kg6SLPFZmuQC4bOfjGa3qHFr5MdPIE=";
})
];
nativeBuildInputs = [ cmake ];
buildInputs = [
imgui
]
++ lib.optionals withExamples [
SDL2
xorg.libXext
];
cmakeFlags = [ (lib.cmakeBool "IMNODES_EXAMPLES" withExamples) ];
passthru.tests.examples = imnodes.override { withExamples = true; };
meta = {
description = "Small, dependency-free node editor for dear imgui";
homepage = "https://github.com/Nelarius/imnodes";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ SomeoneSerge ];
mainProgram = "imnodes";
platforms = lib.platforms.all;
};
}