depot/third_party/nixpkgs/pkgs/by-name/mi/minijinja/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

29 lines
854 B
Nix

{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "minijinja";
version = "2.0.2";
src = fetchFromGitHub {
owner = "mitsuhiko";
repo = "minijinja";
rev = version;
hash = "sha256-aqoUsVj9XYlbi8wh2Rqxy+M9+RU9NLp97qlpTKUlJEI=";
};
cargoHash = "sha256-G9nIlri7VwojNRsCwZxseZxcSxLqAKtnm+AV7TLqJm4=";
# 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";
};
}