tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
tcl, tk: 8.6.11 -> 8.6.13
Weijia Wang
3 years ago
048bf22a
823d5a46
+8
-70
5 changed files
expand all
collapse all
unified
split
pkgs
development
interpreters
tcl
8.6.nix
libraries
tk
8.6.nix
Fix-bad-install_name-for-libtk8.6.dylib.patch
different-prefix-with-tcl.patch
generic.nix
+2
-2
pkgs/development/interpreters/tcl/8.6.nix
···
2
2
3
3
callPackage ./generic.nix (args // rec {
4
4
release = "8.6";
5
5
-
version = "${release}.11";
5
5
+
version = "${release}.13";
6
6
7
7
# Note: when updating, the hash in pkgs/development/libraries/tk/8.6.nix must also be updated!
8
8
9
9
src = fetchurl {
10
10
url = "mirror://sourceforge/tcl/tcl${version}-src.tar.gz";
11
11
-
sha256 = "0n4211j80mxr6ql0xx52rig8r885rcbminfpjdb2qrw6hmk8c14c";
11
11
+
sha256 = "sha256-Q6H650EvYf8R3iz9BdKM/Dpzdi81SkF8YjcKVOLK8GY=";
12
12
};
13
13
})
+2
-14
pkgs/development/libraries/tk/8.6.nix
···
10
10
callPackage ./generic.nix (args // {
11
11
12
12
src = fetchurl {
13
13
-
url = "mirror://sourceforge/tcl/tk${tcl.version}.1-src.tar.gz"; # TODO: remove '.1' for v8.6.10 or v8.7.x
14
14
-
sha256 = "1gh9k7l76qg9l0sb78ijw9xz4xl1af47aqbdifb6mjpf3cbsnv00";
13
13
+
url = "mirror://sourceforge/tcl/tk${tcl.version}-src.tar.gz";
14
14
+
sha256 = "sha256-LmX6BpojNlRAo8VsVWuGc7XjKig4ANjZslfj9YTOBnU=";
15
15
};
16
16
-
17
17
-
patches = [ ./different-prefix-with-tcl.patch ] ++ lib.optionals stdenv.isDarwin [
18
18
-
./Fix-bad-install_name-for-libtk8.6.dylib.patch
19
19
-
# Define MODULE_SCOPE before including tkPort.h
20
20
-
# https://core.tcl-lang.org/tk/info/dba9f5ce3b
21
21
-
(fetchpatch {
22
22
-
name = "module_scope.patch";
23
23
-
url = "https://core.tcl-lang.org/tk/vpatch?from=ef6c6960c53ea30c&to=9b8aa74eebed509a";
24
24
-
extraPrefix = "";
25
25
-
sha256 = "0crhf4zrzdpc1jdgyv6l6mxqgmny12r3i39y1i0j8q3pbqkd04bv";
26
26
-
})
27
27
-
];
28
16
29
17
})
-29
pkgs/development/libraries/tk/Fix-bad-install_name-for-libtk8.6.dylib.patch
···
1
1
-
From f90278dac42135acd55200b7d2153f44d72fec53 Mon Sep 17 00:00:00 2001
2
2
-
From: Josef Knedl <josef.kemetmueller@aon.at>
3
3
-
Date: Wed, 24 Feb 2016 00:37:40 +0100
4
4
-
Subject: [PATCH] Fix bad install_name for libtk8.6.dylib
5
5
-
6
6
-
This follows: https://trac.macports.org/ticket/37395
7
7
-
and https://trac.macports.org/changeset/100816
8
8
-
Alternative would be to use Quartz build instead:
9
9
-
https://sourceforge.net/p/tktoolkit/bugs/3048/
10
10
-
---
11
11
-
unix/Makefile.in | 2 +-
12
12
-
1 file changed, 1 insertion(+), 1 deletion(-)
13
13
-
14
14
-
diff --git a/unix/Makefile.in b/unix/Makefile.in
15
15
-
index f21fdbb..1b89256 100644
16
16
-
--- a/unix/Makefile.in
17
17
-
+++ b/unix/Makefile.in
18
18
-
@@ -283,7 +283,7 @@ CC_SEARCH_FLAGS = @CC_SEARCH_FLAGS@
19
19
-
LD_SEARCH_FLAGS = @LD_SEARCH_FLAGS@
20
20
-
21
21
-
# support for embedded libraries on Darwin / Mac OS X
22
22
-
-DYLIB_INSTALL_DIR = ${LIB_RUNTIME_DIR}
23
23
-
+DYLIB_INSTALL_DIR = $(libdir)
24
24
-
25
25
-
# support for building the Aqua resource file
26
26
-
TK_RSRC_FILE = @TK_RSRC_FILE@
27
27
-
--
28
28
-
2.7.1
29
29
-
-25
pkgs/development/libraries/tk/different-prefix-with-tcl.patch
···
1
1
-
diff --git a/generic/tkWindow.c b/generic/tkWindow.c
2
2
-
index b5cbbab..96b5501 100644
3
3
-
--- a/generic/tkWindow.c
4
4
-
+++ b/generic/tkWindow.c
5
5
-
@@ -988,6 +988,7 @@ TkCreateMainWindow(
6
6
-
7
7
-
Tcl_SetVar2(interp, "tk_patchLevel", NULL, TK_PATCH_LEVEL, TCL_GLOBAL_ONLY);
8
8
-
Tcl_SetVar2(interp, "tk_version", NULL, TK_VERSION, TCL_GLOBAL_ONLY);
9
9
-
+ Tcl_SetVar2(interp, "tk_library", NULL, TK_LIBRARY, TCL_GLOBAL_ONLY);
10
10
-
11
11
-
tsdPtr->numMainWindows++;
12
12
-
return tkwin;
13
13
-
diff --git a/unix/Makefile.in b/unix/Makefile.in
14
14
-
index f21fdbb..c61b0df 100644
15
15
-
--- a/unix/Makefile.in
16
16
-
+++ b/unix/Makefile.in
17
17
-
@@ -1029,7 +1029,7 @@ tkVisual.o: $(GENERIC_DIR)/tkVisual.c
18
18
-
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkVisual.c
19
19
-
20
20
-
tkWindow.o: $(GENERIC_DIR)/tkWindow.c
21
21
-
- $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkWindow.c
22
22
-
+ $(CC) -c $(CC_SWITCHES) -DTK_LIBRARY=\"${TK_LIBRARY}\" $(GENERIC_DIR)/tkWindow.c
23
23
-
24
24
-
tkButton.o: $(GENERIC_DIR)/tkButton.c
25
25
-
$(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkButton.c
+4
pkgs/development/libraries/tk/generic.nix
···
21
21
for file in $(find library/demos/. -type f ! -name "*.*"); do
22
22
substituteInPlace $file --replace "exec wish" "exec $out/bin/wish"
23
23
done
24
24
+
''
25
25
+
+ lib.optionalString (stdenv.isDarwin && lib.versionOlder stdenv.targetPlatform.darwinMinVersion "11") ''
26
26
+
substituteInPlace unix/configure* \
27
27
+
--replace " -framework UniformTypeIdentifiers" ""
24
28
'';
25
29
26
30
postInstall = ''