Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 tcl, 6 tk, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "tkrev"; 11 version = "9.4.1"; 12 13 src = fetchurl { 14 url = "mirror://sourceforge/tkcvs/tkrev_${version}.tar.gz"; 15 sha256 = "sha256-WHDZPShEB9Q+Bjbb37mogJLUZk2GuWoO8bz+Zydc7i4="; 16 }; 17 18 buildInputs = [ 19 tcl 20 tk 21 ]; 22 23 patchPhase = '' 24 for file in tkrev/tkrev.tcl tkdiff/tkdiff; do 25 substituteInPlace "$file" \ 26 --replace "exec wish" "exec ${tk}/bin/wish" 27 done 28 ''; 29 30 installPhase = '' 31 ./doinstall.tcl $out 32 ''; 33 34 meta = { 35 homepage = "https://tkcvs.sourceforge.io"; 36 description = "TCL/TK GUI for cvs and subversion"; 37 license = lib.licenses.gpl2Plus; 38 platforms = lib.platforms.unix; 39 }; 40}