mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
30 lines
854 B
Nix
30 lines
854 B
Nix
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "minijinja";
|
|
version = "2.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mitsuhiko";
|
|
repo = "minijinja";
|
|
rev = version;
|
|
hash = "sha256-6TUi9YY/CtxaFpW8itAiXDFYRet56y6h+okc3cNKzdk=";
|
|
};
|
|
|
|
cargoHash = "sha256-QNGdJg+6mUhWTvLSuLRnPFe2F42UDGnYPEqlVr7jF3s=";
|
|
|
|
# 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";
|
|
};
|
|
}
|