Commit Graph

39 Commits

Author SHA1 Message Date
Francesco Gazzetta
1729877a4c tcl-9_0: 9.0.3 -> 9.0.4 2026-07-02 18:10:22 +02:00
Sigmanificient
0bbc8dffae treewide: set meta.license on hooks 2026-05-25 13:48:20 +02:00
Francesco Gazzetta
7f0b064d1e tcl9Packages: init
Closes #507589
Closes #507575
2026-04-22 18:13:05 +02: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
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
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02: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
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
4f0dadbf38 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 a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +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
Artturin
4e3dcf364e treewide: makeSetupHook deps -> propagatedBuildInputs 2023-02-07 21:02:00 +02:00
Alyssa Ross
320475230c tcl.tclPackageHook: fix cross 2021-09-10 13:38:42 +00: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
ca4b34f09e tcl: combine inherit expressions
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-05-21 15:18:27 -05:00
Andrew Brooks
c6ca1ba9c7 tcl: Add tclPackageHook and mkTclDerivation
Implement tclPackageHook, a setup hook that adjusts TCLLIBPATH to include the
paths of any installed Tcl packages, propagates that TCLLIBPATH to
anti-dependencies, and wraps any installed binaries to set their TCLLIBPATH.

Additionally, implement a makePythonPackage-style mkDerivation wrapper to use
reasonable defaults for Tcl packages and use tclPackageHook.
2021-05-21 15:18:03 -05:00
Ben Siraphob
001c0cbe54 pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
Michael Reilly
84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Jason Felice
41a48b5895 tcl: fix dangling symlink 2019-12-19 09:46:36 -05:00
volth
08f68313a4 treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
volth
c814d72b51 treewide: name -> pname 2019-08-17 10:54:38 +00:00
c0bw3b
3ee1b52371 tcl/tk: 8.6.6 -> 8.6.9
Changelog for Tcl: https://github.com/tcltk/tcl/blob/core-8-6-9/changes#L8797
Changelog for Tk: https://github.com/tcltk/tk/blob/master/changes#L7417

Tk release is actually v8.6.9.1 while Tcl is v8.6.9
2019-04-27 07:09:05 +02:00
Jörg Thalheim
b5c1deca8a treewide: remove wkennington as maintainer
He prefers to contribute to his own nixpkgs fork triton.
Since he is still marked as maintainer in many packages
this leaves the wrong impression he still maintains those.
2019-01-26 10:05:32 +00:00
Jörg Thalheim
42070c9b0d tcl: enable threads and 64-bit support
64-bit support is only enabled on 64-bit systems
2018-12-12 00:58:30 +00:00
Jörg Thalheim
9637f4d58d tcl: fix cross-build 2018-12-12 00:58:30 +00:00
volth
52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
Eelco Dolstra
02bae39132 tcl: Don't install a copy of tzdata
This cuts about 3 MiB from the installed size. On Linux, the configure
script is supposed to detect that installing tzdata is unnecessary,
but it looks in locations like /usr/share/zoneinfo.
2016-09-01 18:57:43 +02:00
Eelco Dolstra
b0327ac240 tcl: Separate man output and use symlinks
This reduces tcl's total size from 25.0 MiB to 8.6 MiB. Admittedly
this is also because putting the manpages in the right place causes
all man3 pages to be deleted by the multiple outputs setup hook. Not
sure if that's desirable behaviour...
2016-09-01 18:57:43 +02:00
Rahul Gopinath
0ba631d5bb tcl/tk: 8.6.4 -> 8.6.6 2016-07-28 16:19:08 -07:00
William A. Kennington III
5835d577e7 tcl/tk: Refactor and add maintainers 2015-04-30 18:49:27 -07:00
William A. Kennington III
d7c0e3eaf8 tcl: Make generic and add 8.5 2015-04-26 21:15:25 -07:00