nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

at devShellTools-shell 46 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 nlohmann_json, 7 doctest, 8 callPackage, 9}: 10 11stdenv.mkDerivation (finalAttrs: { 12 pname = "inja"; 13 version = "3.4.0"; 14 15 src = fetchFromGitHub { 16 owner = "pantor"; 17 repo = "inja"; 18 rev = "v${finalAttrs.version}"; 19 hash = "sha256-B1EaR+qN32nLm3rdnlZvXQ/dlSd5XSc+5+gzBTPzUZU="; 20 }; 21 22 nativeBuildInputs = [ cmake ]; 23 propagatedBuildInputs = [ nlohmann_json ]; 24 25 cmakeFlags = [ 26 (lib.cmakeBool "INJA_BUILD_TESTS" finalAttrs.finalPackage.doCheck) 27 (lib.cmakeBool "INJA_USE_EMBEDDED_JSON" false) 28 (lib.cmakeBool "BUILD_BENCHMARK" false) 29 ]; 30 31 checkInputs = [ doctest ]; 32 doCheck = true; 33 34 passthru.tests = { 35 simple-cmake = callPackage ./simple-cmake-test { }; 36 }; 37 38 meta = { 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; 45 }; 46})