about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/mustache-tcl/default.nix
blob: 063c8ea36f71e8b550cc9f2245ee062565955bbd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 ];
  };
}