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
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
nlohmann_json,
|
|
doctest,
|
|
callPackage,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "inja";
|
|
version = "3.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pantor";
|
|
repo = "inja";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-B1EaR+qN32nLm3rdnlZvXQ/dlSd5XSc+5+gzBTPzUZU=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
propagatedBuildInputs = [ nlohmann_json ];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "INJA_BUILD_TESTS" finalAttrs.finalPackage.doCheck)
|
|
(lib.cmakeBool "INJA_USE_EMBEDDED_JSON" false)
|
|
(lib.cmakeBool "BUILD_BENCHMARK" false)
|
|
];
|
|
|
|
checkInputs = [ doctest ];
|
|
doCheck = true;
|
|
|
|
passthru.tests = {
|
|
simple-cmake = callPackage ./simple-cmake-test { };
|
|
};
|
|
|
|
meta = {
|
|
changelog = "https://github.com/pantor/inja/releases/tag/v${finalAttrs.version}";
|
|
description = "Template engine for modern C++, loosely inspired by jinja for python";
|
|
homepage = "https://github.com/pantor/inja";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ xokdvium ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|