Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 46 lines 868 B view raw
1{ lib 2, fetchFromGitHub 3, tcl 4, tcllib 5}: 6 7tcl.mkTclDerivation rec { 8 pname = "critcl"; 9 version = "3.2"; 10 11 src = fetchFromGitHub { 12 owner = "andreas-kupries"; 13 repo = "critcl"; 14 rev = version; 15 hash = "sha256-IxScn9ZTlqD9mG9VJLG+TtplLFhhahOiFhQCjxp22Uk="; 16 }; 17 18 buildInputs = [ 19 tcl 20 tcllib 21 ]; 22 23 dontBuild = true; 24 doCheck = true; 25 26 checkPhase = '' 27 runHook preInstall 28 HOME="$(mktemp -d)" tclsh ./build.tcl test 29 runHook postInstall 30 ''; 31 32 installPhase = '' 33 runHook preInstall 34 tclsh ./build.tcl install --prefix $out 35 runHook postInstall 36 ''; 37 38 meta = with lib; { 39 description = "Easily embed C code in Tcl"; 40 homepage = "https://andreas-kupries.github.io/critcl/"; 41 license = licenses.tcltk; 42 mainProgram = "critcl"; 43 maintainers = with maintainers; [ fgaz ]; 44 platforms = platforms.all; 45 }; 46}