diff --git a/pkgs/development/libraries/mustache-tcl/default.nix b/pkgs/development/libraries/mustache-tcl/default.nix new file mode 100644 index 00000000000..063c8ea36f7 --- /dev/null +++ b/pkgs/development/libraries/mustache-tcl/default.nix @@ -0,0 +1,32 @@ +{ lib, fetchFromGitHub, tcl, tcllib }: + +tcl.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 ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4b52924cb15..f1dd4f86538 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -28350,6 +28350,8 @@ with pkgs; mustache-spec = callPackage ../data/documentation/mustache-spec { }; + mustache-tcl = callPackage ../development/libraries/mustache-tcl { }; + mustache-go = callPackage ../development/tools/mustache-go { }; mustache-hpp = callPackage ../development/libraries/mustache-hpp { };