Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchFromGitHub, tcl, tcllib }: 2 3tcl.mkTclDerivation rec { 4 pname = "mustache-tcl"; 5 version = "1.1.3.4"; 6 7 src = fetchFromGitHub { 8 owner = "ianka"; 9 repo = "mustache.tcl"; 10 rev = "v${version}"; 11 sha256 = "sha256-apM57LEZ0Y9hXcEPWrKYOoTVtP5QSqiaQrjTHQc3pc4="; 12 }; 13 14 buildInputs = [ 15 tcllib 16 ]; 17 18 unpackPhase = '' 19 mkdir -p $out/lib/mustache-tcl 20 cp $src/mustache.tcl $out/lib/mustache-tcl/mustache.tcl 21 cp $src/pkgIndex.tcl $out/lib/mustache-tcl/pkgIndex.tcl 22 ''; 23 24 meta = with lib; { 25 homepage = "https://github.com/ianka/mustache.tcl"; 26 description = "Tcl implementation of the mustache templating language"; 27 license = licenses.bsd2; 28 platforms = platforms.all; 29 maintainers = with maintainers; [ nat-418 ]; 30 }; 31} 32