86 Commits

Author SHA1 Message Date
Sigmanificient 0bbc8dffae treewide: set meta.license on hooks 2026-05-25 13:48:20 +02:00
nixpkgs-ci[bot] 9e996432d2 Merge staging-next into staging 2026-04-24 18:16:27 +00:00
Francesco Gazzetta b7e033350e tcl9Packages: init (#508586) 2026-04-24 16:02:01 +00:00
nixpkgs-ci[bot] 2571eafb31 Merge staging-next into staging 2026-04-24 12:23:20 +00:00
Francesco Gazzetta 7f0b064d1e tcl9Packages: init
Closes #507589
Closes #507575
2026-04-22 18:13:05 +02:00
Francesco Gazzetta 1ca3a89b38 tcl.mkTclDerivation: use extendMkDerivation 2026-04-22 18:03:40 +02:00
Francesco Gazzetta ba7be2f051 tcl.tclRequiresCheckHook: use structuredAttrs... structurally
Preserve the structure of tclRequiresCheck when using structuredAttrs
instead of relying on it being a space-separated string.
Shouldn't be necessary since package names don't usually contain spaces
or braces, but you never know.
2026-04-20 08:11:19 +02:00
Stefan Frijters fe8fcfd271 tcl.tclRequiresCheckHook: make compatible with structuredAttrs
With __structuredAttrs enabled, arguments to mkDerivation are not exported as
environment variables inside the bash builder by default, so in this case
tclRequiresCheck doesn't exist when the tcl oneliner tries to read it.
tclRequiresCheck is also an array in this case.

So, expand the array and set the environment variable explicitly for the tcl
call only.
2026-04-09 12:51:44 +02:00
nixpkgs-ci[bot] 43334c384f Merge master into staging-next 2026-04-07 17:28:11 +00:00
Henner Zeller fbf93c36fe tcl-9_0: 9.0.1 -> 9.0.3
Also the tk that goes alongside.
2026-04-07 14:18:19 +02:00
Francesco Gazzetta 6384aa87d2 tcl.tclRequiresCheckHook: init (#500462) 2026-03-19 08:05:04 +00:00
Francesco Gazzetta 910bdbb033 tcl.tclRequiresCheckHook: init
Add a hook that checks that Tcl packages can be `require`d correctly,
like `pythonImportsCheck`.
2026-03-18 17:56:16 +01:00
Francesco Gazzetta 49e44efa09 tclPackages.mkTclDerivation: enable stubs by default 2026-03-07 09:56:02 +01:00
Stefan Frijters 1f45d12a2e tclPackages.mkTclDerivation: fix clobbering of env 2026-02-19 00:03:50 +01:00
Stefan Frijters db42568b83 tclPackages.mkTclDerivation: move TCLSH into env 2026-02-12 18:16:47 +01:00
Alyssa Ross 9b6e99f463 tcl: fix static builds
The existing handling of static builds in this expression was
insufficient for x86_64, where we can't even build shared libraries in
a static environment.  Avoid building such libraries, like we do for
other packages.
2026-01-22 15:06:49 +01:00
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
NAHO c8d4dabc43 pkgs: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --type file \
      . \
      pkgs \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2025-10-04 19:02:37 +02:00
Wolfgang Walther 90604d95bc Merge branch 'staging-next' into staging 2025-07-24 14:33:09 +02:00
Wolfgang Walther 5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Francesco Gazzetta b8ea17dbd3 tcl,tk: 8.6.15 -> 8.6.16 2025-07-19 13:54:32 +00:00
Jade Lovelace b4b0914097 tcl: fix on static architectures
This is a bit of a silly one. It's a symbol redefinition problem caused
by autoconf being pessimistic, then a funny eval error where
`stdenv.hostPlatform.extensions.dynamicLibrary` is not defined, say,
when the platform does not support dynamic libraries.

Fixes: https://github.com/NixOS/nixpkgs/issues/380168
2025-02-08 10:43:37 +01:00
7c6f434c a7aac32ab1 pypy{27,310}: 7.3.12 -> 7.3.17 (#370527) 2025-01-07 11:52:49 +00:00
Francesco Gazzetta 4a1f682683 tcl-9_0,tk-9_0: 9.0.0 -> 9.0.1
Fixes darwin for tk-9_0
2025-01-05 10:57:15 +00:00
FliegendeWurst eff5c482de tk-8_5: fix build with GCC 14 2025-01-03 11:53:27 +01:00
FliegendeWurst 5fbbc60571 tcl-8_5: fix build 2025-01-02 17:14:18 +00:00
Silvan Mosberger 84d4f874c2 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev 78e9caf153
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:23:58 +01:00
Wolfgang Walther b5a7391298 tcl: simplify bash "list contains" check in setup hook 2024-12-08 16:34:29 +01:00
Andrew Brooks f028617643 tcl: 8.6.13 -> 8.6.15
(cherry picked from commit b8d86f5728)
(cherry picked from commit c7e2230a5da44c1730f7e1f9f5307b064029b5b8)
2024-11-30 15:11:08 +01:00
Francesco Gazzetta ec6950e63a tcl-9_0: init 2024-10-20 12:50:53 +00:00
Artturin e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Alexis Hildebrandt f8c4a98e8e treewide: Remove the definite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
2024-06-09 23:08:46 +02:00
Artturin b0c2a800d6 tcl.tclPackageHook: inherit maintainers and platforms 2023-09-17 05:07:55 +03:00
Ryan Gonzalez 1e3148d3fe tcl.tclPackageHook: Use makeBinaryWrapper
Given the number of entries in TCLLIBPATH when using tcllib, this
results in some massive startup time speedups:

```
$ nix shell 'nixpkgs#tcl2048' -c sh -c 'echo q | time 2048'
```

takes .44s on master but only .01s with this change.
2023-09-17 05:05:20 +03:00
Alexander Khodyrev d45bbf150d tcl: add test for #243831
As suggested in pull request discussion
https://github.com/NixOS/nixpkgs/pull/243838

Explicitly verify that the installed Tcl can find tzdata. If the fix
from 8d0dce91bc is commented out, the
test fails.
2023-07-21 09:12:45 +03:00
Alexander Khodyrev 8d0dce91bc tcl: fix #243831
Add a dependency on tzdata, use tzdata's zoneinfo in clock.tcl. Remove
other paths clock.tcl may try to use for zoneinfo to avoid non-store dependency.
2023-07-16 21:45:26 +03:00
Weijia Wang 048bf22a4c tcl, tk: 8.6.11 -> 8.6.13 2023-03-31 10:00:38 +03:00
Weijia Wang c262051db3 tcl-8_5, tk-8_5: 8.5.18 -> 8.5.19 2023-03-14 11:20:23 +02:00
Artturin 4e3dcf364e treewide: makeSetupHook deps -> propagatedBuildInputs 2023-02-07 21:02:00 +02:00
Francesco Gazzetta 9d9eceb7e0 tcl.tclPackageHook: add dontWrapTclBinaries parameter 2023-01-26 14:46:46 +01:00
Guillaume Girol dcfdd9d8da mkTclDerivation: support nativeCheckInputs 2023-01-21 16:42:10 +01:00
Timo Kaufmann 2fb7cd664e tcl.mkTclDerivation: fix exec prefix
Shell variables are not expanded, so the old value was just the literal
string `${out}`.

Fixes #139566
2021-09-28 18:41:53 +02:00
Alyssa Ross 104abaeb52 tcl.mkTclDerivation: fix cross 2021-09-10 13:38:42 +00:00
Alyssa Ross 320475230c tcl.tclPackageHook: fix cross 2021-09-10 13:38:42 +00:00
davidak a05b154023 Merge pull request #125307 from wizeman/u/fix-tk-hash
tk-8_6: fix hash after tcl-8_6 update
2021-08-26 05:10:29 +02:00
Sandro Jäckel 4109b119c2 tcl: allow passing in extra wrapper args through tclWrapperArgs 2021-06-17 20:39:44 +02:00
Ricardo M. Correia d9bf02324a tk-8_6: fix hash after tcl-8_6 update
tcl-8_6 was updated in 4fb92ae60d from
8.6.9 -> 8.6.11 but tk's hash wasn't updated at the same time,
which means the current hash was still from tk 8.6.9 rather than 8.6.11.
2021-06-06 01:40:39 +02:00
Andrew Brooks b7b9680e66 tcl: update maintainers
When I reached out to vrthra / Rahul Gopinath about this PR, he
indicated that he no longer has the time to serve as tcl maintainer
and suggested that I take on the responsibility.
2021-05-21 15:18:31 -05:00
Andrew Brooks 4b5d85bf44 tcl: use double square brackets consistently in tcl package hook 2021-05-21 15:18:30 -05:00
Andrew Brooks 927251e781 tcl: avoid readonly local in package hook
If a path with a space were added to TCLLIBPATH, _addToTclLibPath
would attempt to mutate the tclPkg local and fail.
2021-05-21 15:18:29 -05:00