mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
- Remove 'with lib;' from meta blocks and use qualified lib attributes - Replace deprecated 'sha256' with 'hash' for fetchurl and fetchFromGitHub - Replace 'rev' with 'tag' when using version tags in fetchFromGitHub - Update substituteInPlace to use --replace-fail for better error detection
37 lines
856 B
Nix
37 lines
856 B
Nix
{
|
|
lib,
|
|
fetchurl,
|
|
mkTclDerivation,
|
|
}:
|
|
|
|
mkTclDerivation {
|
|
pname = "wapp";
|
|
version = "0-unstable-2024-11-22";
|
|
|
|
src = fetchurl {
|
|
url = "https://wapp.tcl-lang.org/home/raw/3b1ce7c0234b4b2750deadc80f524ed28e835aa5e741bf3fe63b416a16a55699?at=wapp.tcl";
|
|
hash = "sha256-0e9yTVFYj1tYGU7EiXRPw35qfDzckzz4i3RV/8TttGw=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/lib/wapp
|
|
cp $src $out/lib/wapp/wapp.tcl
|
|
cat <<EOF > $out/lib/wapp/pkgIndex.tcl
|
|
package ifneeded wapp 1.0 [list source [file join \$dir wapp.tcl]]
|
|
EOF
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://wapp.tcl-lang.org/home/doc/trunk/README.md";
|
|
description = "Framework for writing web applications in Tcl";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [ nat-418 ];
|
|
};
|
|
}
|