f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
29 lines
854 B
Nix
29 lines
854 B
Nix
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "minijinja";
|
|
version = "2.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mitsuhiko";
|
|
repo = "minijinja";
|
|
rev = version;
|
|
hash = "sha256-R+OY5RIKX5AkP/sRkU1SoFAeFpFPjiMOuow9nEG30W0=";
|
|
};
|
|
|
|
cargoHash = "sha256-PiR7uq8VnD3vrYHeUh6QJ+yx4UxIq7pr17TNXpksfiA=";
|
|
|
|
# The tests relies on the presence of network connection
|
|
doCheck = false;
|
|
|
|
cargoBuildFlags = "--bin minijinja-cli";
|
|
|
|
meta = with lib; {
|
|
description = "Command Line Utility to render MiniJinja/Jinja2 templates";
|
|
homepage = "https://github.com/mitsuhiko/minijinja";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ psibi ];
|
|
changelog = "https://github.com/mitsuhiko/minijinja/blob/${version}/CHANGELOG.md";
|
|
mainProgram = "minijinja-cli";
|
|
};
|
|
}
|