nixpkgs/pkgs/by-name/mi/minijinja/package.nix
2024-04-24 15:46:56 +00:00

30 lines
855 B
Nix

{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "minijinja";
version = "1.0.21";
src = fetchFromGitHub {
owner = "mitsuhiko";
repo = "minijinja";
rev = version;
hash = "sha256-P18zqKbr7kWU2B9b6MNdL0Z281174NHTGvo38J/wSEo=";
};
cargoHash = "sha256-nemZUNF1tHbXopIsvqFI/MIKrZcXj6YQF0WNxBkE310=";
# 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";
};
}