2024-01-24 12:08:32 +01:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "minijinja";
|
2024-09-17 00:50:12 +02:00
|
|
|
version = "2.3.0";
|
2024-01-24 12:08:32 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mitsuhiko";
|
|
|
|
repo = "minijinja";
|
|
|
|
rev = version;
|
2024-09-17 00:50:12 +02:00
|
|
|
hash = "sha256-SZWVvj/tGpoC740An/sgdPVg+uV39QBj7qbjK0lSYdo=";
|
2024-01-24 12:08:32 +01:00
|
|
|
};
|
|
|
|
|
2024-09-17 00:50:12 +02:00
|
|
|
cargoHash = "sha256-OVpqfwu5x/XfqgB8xJY+qZYQUgsa2QO9FZ+/KVYZxgE=";
|
2024-01-24 12:08:32 +01:00
|
|
|
|
|
|
|
# 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";
|
|
|
|
};
|
|
|
|
}
|