From 837e599dfa28465431400b5797e39a1b9934b13d Mon Sep 17 00:00:00 2001 From: Sibi Prabakaran Date: Wed, 24 Jan 2024 16:38:32 +0530 Subject: [PATCH] minijinja: init at 1.0.12 --- pkgs/by-name/mi/minijinja/package.nix | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pkgs/by-name/mi/minijinja/package.nix diff --git a/pkgs/by-name/mi/minijinja/package.nix b/pkgs/by-name/mi/minijinja/package.nix new file mode 100644 index 000000000000..6f005cf411a6 --- /dev/null +++ b/pkgs/by-name/mi/minijinja/package.nix @@ -0,0 +1,29 @@ +{ lib, rustPlatform, fetchFromGitHub }: + +rustPlatform.buildRustPackage rec { + pname = "minijinja"; + version = "1.0.12"; + + src = fetchFromGitHub { + owner = "mitsuhiko"; + repo = "minijinja"; + rev = version; + hash = "sha256-v5YTPcUiCUQvTURqgKepdOjKZ5rFLr+mF7X+s5GvxdM="; + }; + + cargoHash = "sha256-OhfrlT2DZU3ahH9PKqpEK8f34J2E6zNUai3hYBPg7v4="; + + # 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"; + }; +}