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