Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchurl, tcl }: 2 3tcl.mkTclDerivation { 4 pname = "wapp"; 5 version = "unstable-2023-05-05"; 6 7 src = fetchurl { 8 url = "https://wapp.tcl-lang.org/home/raw/72d0d081e3e6a4aea91ddf429a85cbdf40f9a32d46cccfe81bb75ee50e6cf9cf?at=wapp.tcldir?ci=9d3368116c59ef16"; 9 hash = "sha256-poG7dvaiOXMi4oWMQ5t3v7SYEqZLUY/TsWXrTL62xd0="; 10 }; 11 12 dontUnpack = true; 13 14 installPhase = '' 15 runHook preInstall 16 17 mkdir -p $out/lib/wapp 18 cp $src $out/lib/wapp/wapp.tcl 19 cat <<EOF > $out/lib/wapp/pkgIndex.tcl 20 package ifneeded wapp 1.0 [list source [file join \$dir wapp.tcl]] 21 EOF 22 23 runHook postInstall 24 ''; 25 26 meta = with lib; { 27 homepage = "https://wapp.tcl-lang.org/home/doc/trunk/README.md"; 28 description = "A framework for writing web applications in Tcl"; 29 license = licenses.bsd2; 30 maintainers = with maintainers; [ nat-418 ]; 31 }; 32}