Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
29 lines
854 B
Nix
29 lines
854 B
Nix
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "minijinja";
|
|
version = "2.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mitsuhiko";
|
|
repo = "minijinja";
|
|
rev = version;
|
|
hash = "sha256-8ZAc5ALhpPyFCCsC0f22fSZKRmevFLLFFC0drUuXxg4=";
|
|
};
|
|
|
|
cargoHash = "sha256-2aeRb5jNZbpzAgpne494BMr7rkDqZUJEpITtHbdmhxY=";
|
|
|
|
# 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";
|
|
};
|
|
}
|