Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / tk / 8.5.nix
blobafd575915f8527ebd4bf76fe795daae5f349ecb8
1 { lib
2 , stdenv
3 , callPackage
4 , fetchurl
5 , fetchpatch
6 , tcl
7 , ...
8 } @ args:
10 callPackage ./generic.nix (args // {
12   src = fetchurl {
13     url = "mirror://sourceforge/tcl/tk${tcl.version}-src.tar.gz";
14     sha256 = "1yhgcalldrjlc5q614rlzg1crgd3b52dhrk1pncdaxvl2vgg2yj0";
15   };
17   patches = lib.optionals stdenv.isDarwin [
18     # Define MODULE_SCOPE before including tkPort.h
19     # https://core.tcl-lang.org/tk/info/dba9f5ce3b
20     (fetchpatch {
21       name = "module_scope.patch";
22       url = "https://core.tcl-lang.org/tk/vpatch?from=ef6c6960c53ea30c&to=9b8aa74eebed509a";
23       extraPrefix = "";
24       sha256 = "0crhf4zrzdpc1jdgyv6l6mxqgmny12r3i39y1i0j8q3pbqkd04bv";
25     })
26   ];