Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 callPackage, 5 fetchurl, 6 fetchpatch, 7 tcl, 8 ... 9}@args: 10 11callPackage ./generic.nix ( 12 args 13 // { 14 15 src = fetchurl { 16 url = "mirror://sourceforge/tcl/tk${tcl.version}-src.tar.gz"; 17 sha256 = "1yhgcalldrjlc5q614rlzg1crgd3b52dhrk1pncdaxvl2vgg2yj0"; 18 }; 19 20 patches = lib.optionals stdenv.hostPlatform.isDarwin [ 21 # Define MODULE_SCOPE before including tkPort.h 22 # https://core.tcl-lang.org/tk/info/dba9f5ce3b 23 (fetchpatch { 24 name = "module_scope.patch"; 25 url = "https://core.tcl-lang.org/tk/vpatch?from=ef6c6960c53ea30c&to=9b8aa74eebed509a"; 26 extraPrefix = ""; 27 sha256 = "0crhf4zrzdpc1jdgyv6l6mxqgmny12r3i39y1i0j8q3pbqkd04bv"; 28 }) 29 ]; 30 31 } 32)