11 stdenv.mkDerivation (finalAttrs: {
15 src = fetchFromGitHub {
18 rev = "v${finalAttrs.version}";
19 hash = "sha256-B1EaR+qN32nLm3rdnlZvXQ/dlSd5XSc+5+gzBTPzUZU=";
22 nativeBuildInputs = [ cmake ];
23 propagatedBuildInputs = [ nlohmann_json ];
26 (lib.cmakeBool "INJA_BUILD_TESTS" finalAttrs.finalPackage.doCheck)
27 (lib.cmakeBool "INJA_USE_EMBEDDED_JSON" false)
28 (lib.cmakeBool "BUILD_BENCHMARK" false)
31 checkInputs = [ doctest ];
35 simple-cmake = callPackage ./simple-cmake-test { };
39 changelog = "https://github.com/pantor/inja/releases/tag/v${finalAttrs.version}";
40 description = "Template engine for modern C++, loosely inspired by jinja for python";
41 homepage = "https://github.com/pantor/inja";
42 license = lib.licenses.mit;
43 maintainers = with lib.maintainers; [ xokdvium ];
44 platforms = lib.platforms.all;