nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 39 lines 1.0 kB view raw
1{ 2 lib, 3 mkTclDerivation, 4 fetchfossil, 5}: 6 7mkTclDerivation rec { 8 pname = "tcludp"; 9 version = "1.0.11"; 10 11 src = fetchfossil { 12 url = "https://core.tcl-lang.org/tcludp"; 13 rev = "ver_" + lib.replaceStrings [ "." ] [ "_" ] version; 14 hash = "sha256-PckGwUqL2r5KJEet8sS4U504G63flX84EkQEkQdMifY="; 15 }; 16 17 # Add missing pkgIndex.tcl.in 18 postPatch = '' 19 test ! -e pkgIndex.tcl.in 20 cat > pkgIndex.tcl.in <<EOF 21 package ifneeded @PACKAGE_NAME@ @PACKAGE_VERSION@ \ 22 [list load [file join $dir @PKG_LIB_FILE@] @PACKAGE_NAME@] 23 EOF 24 ''; 25 26 # Some tests fail because of the sandbox. 27 # However, tcltest always returns exit code 0, so this always succeeds. 28 # https://wuhrr.wordpress.com/2013/09/13/tcltest-part-9-provides-exit-code/ 29 doInstallCheck = true; 30 31 installCheckTarget = "test"; 32 33 meta = { 34 description = "UDP socket support for Tcl"; 35 homepage = "https://core.tcl-lang.org/tcludp"; 36 license = lib.licenses.mit; 37 maintainers = with lib.maintainers; [ fgaz ]; 38 }; 39}