diff --git a/pkgs/development/compilers/critcl/default.nix b/pkgs/development/compilers/critcl/default.nix new file mode 100644 index 000000000000..5caf63d9dba6 --- /dev/null +++ b/pkgs/development/compilers/critcl/default.nix @@ -0,0 +1,46 @@ +{ lib +, fetchFromGitHub +, tcl +, tcllib +}: + +tcl.mkTclDerivation rec { + pname = "critcl"; + version = "3.2"; + + src = fetchFromGitHub { + owner = "andreas-kupries"; + repo = "critcl"; + rev = version; + hash = "sha256-IxScn9ZTlqD9mG9VJLG+TtplLFhhahOiFhQCjxp22Uk="; + }; + + buildInputs = [ + tcl + tcllib + ]; + + dontBuild = true; + doCheck = true; + + checkPhase = '' + runHook preInstall + HOME="$(mktemp -d)" tclsh ./build.tcl test + runHook postInstall + ''; + + installPhase = '' + runHook preInstall + tclsh ./build.tcl install --prefix $out + runHook postInstall + ''; + + meta = with lib; { + description = "Easily embed C code in Tcl"; + homepage = "https://andreas-kupries.github.io/critcl/"; + license = licenses.tcltk; + mainProgram = "critcl"; + maintainers = with maintainers; [ fgaz ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 908f0f608fdc..aefe2773f334 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15752,6 +15752,8 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) CoreServices; }; + critcl = callPackage ../development/compilers/critcl { }; + inherit (darwin.apple_sdk_11_0.callPackage ../development/compilers/crystal { }) crystal_1_2 crystal_1_7