depot/pkgs/development/tcl-modules/by-name/mu/mustache-tcl/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

32 lines
783 B
Nix

{ lib, fetchFromGitHub, mkTclDerivation, tcllib }:
mkTclDerivation rec {
pname = "mustache-tcl";
version = "1.1.3.4";
src = fetchFromGitHub {
owner = "ianka";
repo = "mustache.tcl";
rev = "v${version}";
sha256 = "sha256-apM57LEZ0Y9hXcEPWrKYOoTVtP5QSqiaQrjTHQc3pc4=";
};
buildInputs = [
tcllib
];
unpackPhase = ''
mkdir -p $out/lib/mustache-tcl
cp $src/mustache.tcl $out/lib/mustache-tcl/mustache.tcl
cp $src/pkgIndex.tcl $out/lib/mustache-tcl/pkgIndex.tcl
'';
meta = with lib; {
homepage = "https://github.com/ianka/mustache.tcl";
description = "Tcl implementation of the mustache templating language";
license = licenses.bsd2;
platforms = platforms.all;
maintainers = with maintainers; [ nat-418 ];
};
}