nixpkgs/pkgs/by-name/mi/minijinja/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
861 B
Nix
Raw Normal View History

2024-01-24 11:08:32 +00:00
{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
pname = "minijinja";
2024-12-07 03:19:08 +00:00
version = "2.5.0";
2024-01-24 11:08:32 +00:00
src = fetchFromGitHub {
owner = "mitsuhiko";
repo = "minijinja";
rev = version;
2024-12-07 03:19:08 +00:00
hash = "sha256-rRNikxSgr3isXkp/2oqPQ3JkugxuLgYlcT5c+4yIYBc=";
2024-01-24 11:08:32 +00:00
};
2024-12-07 03:19:08 +00:00
cargoHash = "sha256-ksdCvl8x6KfqNRnTeIKkL6nnr4d53wMv7pr2rupVkTI=";
2024-01-24 11:08:32 +00: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";
};
}