Commit Graph

59 Commits

Author SHA1 Message Date
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
Andrew Brooks
f028617643
tcl: 8.6.13 -> 8.6.15
(cherry picked from commit b8d86f5728)
(cherry picked from commit c7e2230a5d)
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
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
e22fe366af tcl: fix TCLLIBPATH edge cases in tcl package hook
TCLLIBPATH was not actually extended if a package's path was a substring
of a package already on the path. This commit fixes that behavior.

Additionally, '--prefix' is now used in place of '--set', as the latter
was found to break tkremind from the remind package.
2021-05-21 15:18:26 -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
4fb92ae60d tcl-8_6: 8.6.9 -> 8.6.11 2021-02-20 09:03:04 +01: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
William A. Kennington III
55a64a5ddb tcl/tk: Tie versioning together and propagate 2015-04-26 20:55:42 -07:00
William A. Kennington III
8286f6cef3 tcl: 8.5.15 -> 8.6.4 2015-03-26 15:39:20 -07:00
Song Wenwu
b6cc977580 tcl: update to 8.5.15 2014-01-25 08:45:56 +08:00
aszlig
ae32dd91d4
tcl: Set license to licenses.tcltk.
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2012-09-09 07:00:01 +02:00
Lluís Batlle i Rossell
163c7375a3 Adding a version of sqlite with more things, based on the upstream repository src.
svn path=/nixpkgs/trunk/; revision=33788
2012-04-14 21:40:55 +00:00
Lluís Batlle i Rossell
ef25944cdb Updating tcl/tk
svn path=/nixpkgs/trunk/; revision=15434
2009-05-03 14:35:56 +00:00
Eelco Dolstra
7689a348c4 * Got rid of a lot of "postInstall=postInstall" and similar lines in
builders.  These are redundant now.
* Inlined some trivial builders.
* Removed a few explicit setup-hook creations.  This is done
  automatically now if setupHook is set.
* Deleted the initscripts package.  NixOS doesn't use it anymore.

svn path=/nixpkgs/branches/stdenv-updates/; revision=15276
2009-04-23 13:31:10 +00:00
Eelco Dolstra
1c65ea4e20 * Added expect.
svn path=/nixpkgs/trunk/; revision=10877
2008-02-27 15:48:53 +00:00