Skip to content

Commit

Permalink
treewide: move tcl libraries under tclPackages
Browse files Browse the repository at this point in the history
  • Loading branch information
fgaz committed Oct 11, 2024
1 parent 5ffc82a commit 3448ad8
Show file tree
Hide file tree
Showing 43 changed files with 98 additions and 100 deletions.
10 changes: 4 additions & 6 deletions pkgs/applications/misc/therion/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
, pkg-config
, perl
, tcl
, tcllib
, tclPackages
, tk
, expat
, bwidget
, python3
, texliveTeTeX
, survex
Expand All @@ -25,7 +24,6 @@
, sqlite
, libtiff
, curl
, tkimg
}:

stdenv.mkDerivation rec {
Expand Down Expand Up @@ -59,7 +57,7 @@ stdenv.mkDerivation rec {

buildInputs = [
expat
tkimg
tclPackages.tkimg
proj
wxGTK32
vtk
Expand All @@ -74,8 +72,8 @@ stdenv.mkDerivation rec {
curl
fmt
tcl
tcllib
bwidget
tclPackages.tcllib
tclPackages.bwidget
];

fixupPhase = ''
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/science/electronics/openroad/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
, readline
, spdlog
, tcl
, tcllib
, tclPackages
, xorg
, yosys
, zlib
Expand Down Expand Up @@ -72,7 +72,7 @@ mkDerivation rec {
readline
spdlog
tcl
tcllib
tclPackages.tcllib
yosys
xorg.libX11
zlib
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/version-management/fossil/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
, sqlite
, ed
, which
, tcllib
, tclPackages
, withJson ? true
}:

Expand All @@ -28,7 +28,7 @@ stdenv.mkDerivation (finalAttrs: {
# required for build time tool `./tools/translate.c`
depsBuildBuild = [ buildPackages.stdenv.cc ];

nativeBuildInputs = [ installShellFiles tcl tcllib ];
nativeBuildInputs = [ installShellFiles tcl tclPackages.tcllib ];

buildInputs = [ zlib openssl readline which ed ]
++ lib.optional stdenv.hostPlatform.isDarwin libiconv
Expand Down
6 changes: 3 additions & 3 deletions pkgs/by-name/em/emacspeak/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
, makeWrapper
, stdenv
, tcl
, tclx
, tclPackages
}:

stdenv.mkDerivation (finalAttrs: {
Expand All @@ -27,7 +27,7 @@ stdenv.mkDerivation (finalAttrs: {
buildInputs = [
espeak-ng
tcl
tclx
tclPackages.tclx
];

strictDeps = true;
Expand All @@ -49,7 +49,7 @@ stdenv.mkDerivation (finalAttrs: {
find "$d" -type f -not -executable -execdir chmod 644 {} +
makeWrapper ${lib.getExe emacs} $out/bin/emacspeak \
--set DTK_PROGRAM "${placeholder "out"}/share/emacs/site-lisp/emacspeak/servers/espeak" \
--set TCLLIBPATH "${tclx}/lib" \
--set TCLLIBPATH "${tclPackages.tclx}/lib" \
--add-flags '-l "${placeholder "out"}/share/emacs/site-lisp/emacspeak/lisp/emacspeak-setup.elc"'
'';

Expand Down
15 changes: 9 additions & 6 deletions pkgs/by-name/ke/keydb/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
jemalloc,
which,
tcl,
tcltls,
tclPackages,
ps,
getconf,
nixosTests,
Expand Down Expand Up @@ -60,11 +60,14 @@ stdenv.mkDerivation (finalAttrs: {

# darwin currently lacks a pure `pgrep` which is extensively used here
doCheck = !stdenv.hostPlatform.isDarwin;
nativeCheckInputs = [
which
tcl
ps
] ++ lib.optionals stdenv.hostPlatform.isStatic [ getconf ] ++ lib.optionals tlsSupport [ tcltls ];
nativeCheckInputs =
[
which
tcl
ps
]
++ lib.optionals stdenv.hostPlatform.isStatic [ getconf ]
++ lib.optionals tlsSupport [ tclPackages.tcltls ];
checkPhase = ''
runHook preCheck
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/re/remind/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
stdenv,
fetchurl,
tk,
tcllib,
tclPackages,
tcl,
tkremind ? null,
withGui ?
Expand All @@ -23,7 +23,7 @@ tcl.mkTclDerivation rec {
};

propagatedBuildInputs = lib.optionals withGui [
tcllib
tclPackages.tcllib
tk
];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/xf/xfs-undelete/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
, makeWrapper
, coreutils
, tcl-8_6
, tcllib
, tclPackages
, installShellFiles
}:

Expand All @@ -19,7 +19,7 @@ stdenv.mkDerivation {
hash = "sha256-ENa/r3+o7abW8iun6V/2LhTVmFVSwVM6v46KXBcKJ1g=";
};

buildInputs = [ tcl-8_6 tcllib coreutils ];
buildInputs = [ tcl-8_6 tclPackages.tcllib coreutils ];
nativeBuildInputs = [ makeWrapper tcl-8_6.tclPackageHook installShellFiles ];

tclWrapperArgs = [ "--prefix" "PATH" ":" (lib.makeBinPath [ tcl-8_6 ]) ];
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/interpreters/python/cpython/2.7/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
, openssl
, readline
, sqlite
, tcl ? null, tk ? null, tix ? null, libX11 ? null, x11Support ? false
, tcl ? null, tk ? null, tclPackages, libX11 ? null, x11Support ? false
, zlib
, self
, configd, coreutils
Expand Down Expand Up @@ -273,8 +273,8 @@ in with passthru; stdenv.mkDerivation ({

setupHook = python-setup-hook sitePackages;

postPatch = lib.optionalString (x11Support && (tix != null)) ''
substituteInPlace "Lib/lib-tk/Tix.py" --replace "os.environ.get('TIX_LIBRARY')" "os.environ.get('TIX_LIBRARY') or '${tix}/lib'"
postPatch = lib.optionalString (x11Support && ((tclPackages.tix or null) != null)) ''
substituteInPlace "Lib/lib-tk/Tix.py" --replace "os.environ.get('TIX_LIBRARY')" "os.environ.get('TIX_LIBRARY') or '${tclPackages.tix}/lib'"
'';

postInstall =
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/interpreters/python/cpython/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
, tzdata
, withGdbm ? !stdenv.hostPlatform.isWindows, gdbm
, withReadline ? !stdenv.hostPlatform.isWindows, readline
, x11Support ? false, tcl, tk, tix, libX11, xorgproto
, x11Support ? false, tcl, tk, tclPackages, libX11, xorgproto

# splicing/cross
, pythonAttr ? "python${sourceVersion.major}${sourceVersion.minor}"
Expand Down Expand Up @@ -375,10 +375,10 @@ in with passthru; stdenv.mkDerivation (finalAttrs: {
'' + optionalString mimetypesSupport ''
substituteInPlace Lib/mimetypes.py \
--replace-fail "@mime-types@" "${mailcap}"
'' + optionalString (pythonOlder "3.13" && x11Support && (tix != null)) ''
'' + optionalString (pythonOlder "3.13" && x11Support && ((tclPackages.tix or null) != null)) ''
substituteInPlace "Lib/tkinter/tix.py" --replace-fail \
"os.environ.get('TIX_LIBRARY')" \
"os.environ.get('TIX_LIBRARY') or '${tix}/lib'"
"os.environ.get('TIX_LIBRARY') or '${tclPackages.tix}/lib'"
'';

env = {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/interpreters/python/pypy/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ lib, stdenv, substituteAll, fetchurl
, zlibSupport ? true, zlib
, bzip2, pkg-config, libffi, libunwind, Security
, sqlite, openssl, ncurses, python, expat, tcl, tk, tix, libX11
, sqlite, openssl, ncurses, python, expat, tcl, tk, tclPackages, libX11
, gdbm, db, xz, python-setup-hook
, optimizationLevel ? "jit", boehmgc
# For the Python package set
Expand Down Expand Up @@ -98,7 +98,7 @@ in with passthru; stdenv.mkDerivation rec {
--replace "multiprocessing.cpu_count()" "$NIX_BUILD_CORES"
substituteInPlace "lib-python/${if isPy3k then "3/tkinter/tix.py" else "2.7/lib-tk/Tix.py"}" \
--replace "os.environ.get('TIX_LIBRARY')" "os.environ.get('TIX_LIBRARY') or '${tix}/lib'"
--replace "os.environ.get('TIX_LIBRARY')" "os.environ.get('TIX_LIBRARY') or '${tclPackages.tix}/lib'"
'';

buildPhase = ''
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/r-modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ let
RMySQL = with pkgs; [ zlib libmysqlclient openssl.dev ];
RNetCDF = with pkgs; [ netcdf udunits ];
RODBC = [ pkgs.libiodbc ];
rpanel = [ pkgs.bwidget ];
rpanel = [ pkgs.tclPackages.bwidget ];
Rpoppler = [ pkgs.poppler ];
RPostgres = with pkgs; [ postgresql ];
RPostgreSQL = with pkgs; [ postgresql postgresql ];
Expand Down Expand Up @@ -1442,9 +1442,9 @@ let

rpanel = old.rpanel.overrideAttrs (attrs: {
preConfigure = ''
export TCLLIBPATH="${pkgs.bwidget}/lib/bwidget${pkgs.bwidget.version}"
export TCLLIBPATH="${pkgs.tclPackages.bwidget}/lib/bwidget${pkgs.tclPackages.bwidget.version}"
'';
TCLLIBPATH = "${pkgs.bwidget}/lib/bwidget${pkgs.bwidget.version}";
TCLLIBPATH = "${pkgs.tclPackages.bwidget}/lib/bwidget${pkgs.tclPackages.bwidget.version}";
});

networkscaleup = old.networkscaleup.overrideAttrs (attrs: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib, fetchurl, tcl, tk }:
{ lib, fetchurl, mkTclDerivation, tk }:

tcl.mkTclDerivation rec {
mkTclDerivation rec {
pname = "bwidget";
version = "1.9.16";

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl, writeText, tcl }:
{ lib, stdenv, mkTclDerivation, fetchurl, writeText, tcl }:

tcl.mkTclDerivation rec {
mkTclDerivation rec {
pname = "incrtcl";
version = "4.2.3";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl, tcl, tk, incrtcl }:
{ lib, stdenv, fetchurl, mkTclDerivation, tk, incrtcl }:

tcl.mkTclDerivation rec {
mkTclDerivation rec {
pname = "itk-tcl";
version = "4.1.0";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib, fetchFromGitHub, tcl, tcllib }:
{ lib, fetchFromGitHub, mkTclDerivation, tcllib }:

tcl.mkTclDerivation rec {
mkTclDerivation rec {
pname = "mustache-tcl";
version = "1.1.3.4";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
lib,
tcl,
mkTclDerivation,
fetchzip,
}:

tcl.mkTclDerivation rec {
mkTclDerivation rec {
pname = "pdf4tcl";
version = "0.9.4";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib, fetchFromGitHub, tcl, tclx }:
{ lib, fetchFromGitHub, mkTclDerivation, tclx }:

tcl.mkTclDerivation rec {
mkTclDerivation rec {
pname = "tcl-fcgi";
version = "0.5.0";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
lib,
tcl,
mkTclDerivation,
fetchFromGitHub,
curl,
}:

tcl.mkTclDerivation rec {
mkTclDerivation rec {
pname = "tclcurl";
version = "7.22.1";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{ lib
, fetchzip
, tcl
, mkTclDerivation
, critcl
, withCritcl ? true
}:

tcl.mkTclDerivation rec {
mkTclDerivation rec {
pname = "tcllib";
version = "1.21";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
lib,
tcl,
mkTclDerivation,
fetchzip,
graphicsmagick,
tk,
}:

tcl.mkTclDerivation rec {
mkTclDerivation rec {
pname = "tclmagick";
version = "1.3.43";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
, autoconf
, libtool
, readline
, tcl
, mkTclDerivation
, tk
}:

tcl.mkTclDerivation rec {
mkTclDerivation rec {
pname = "tclreadline";
version = "2.3.8";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib, fetchurl, tcl, openssl }:
{ lib, fetchurl, mkTclDerivation, openssl }:

tcl.mkTclDerivation rec {
mkTclDerivation rec {
pname = "tcltls";
version = "1.7.22";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
lib,
tcl,
mkTclDerivation,
fetchfossil,
}:

tcl.mkTclDerivation rec {
mkTclDerivation rec {
pname = "tcludp";
version = "1.0.11";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
lib,
tcl,
mkTclDerivation,
fetchzip,
}:

tcl.mkTclDerivation {
mkTclDerivation {
pname = "tclvfs";
version = "1.4-unstable-2023-11-23";

Expand Down
Loading

0 comments on commit 3448ad8

Please sign in to comment.