-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into staging-next
- Loading branch information
Showing
193 changed files
with
1,059 additions
and
713 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
.github/workflows/editorconfig.yml → .github/workflows/editorconfig-v2.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
.github/workflows/manual-nixos.yml → .github/workflows/manual-nixos-v2.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
.github/workflows/manual-nixpkgs.yml → .github/workflows/manual-nixpkgs-v2.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
.github/workflows/nix-parse.yml → .github/workflows/nix-parse-v2.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Tcl {#sec-language-tcl} | ||
|
||
## User guide {#sec-language-tcl-user-guide} | ||
|
||
Tcl interpreters are available under the `tcl` and `tcl-X_Y` attributes, where `X_Y` is the Tcl version. | ||
|
||
Tcl libraries are available in the `tclPackages` attribute set. | ||
They are only guaranteed to work with the default Tcl version, but will probably also work with others thanks to the [stubs mechanism](https://wiki.tcl-lang.org/page/Stubs). | ||
|
||
## Packaging guide {#sec-language-tcl-packaging} | ||
|
||
Tcl packages are typically built with `tclPackages.mkTclDerivation`. | ||
Tcl dependencies go in `buildInputs`/`nativeBuildInputs`/... like other packages. | ||
For more complex package definitions, such as packages with mixed languages, use `tcl.tclPackageHook`. | ||
|
||
Where possible, make sure to enable stubs for maximum compatibility, usually with the `--enable-stubs` configure flag. | ||
|
||
Here is a simple package example to be called with `tclPackages.callPackage`. | ||
|
||
``` | ||
{ lib, fetchzip, mkTclDerivation, openssl }: | ||
mkTclDerivation rec { | ||
pname = "tcltls"; | ||
version = "1.7.22"; | ||
src = fetchzip { | ||
url = "https://core.tcl-lang.org/tcltls/uv/tcltls-${version}.tar.gz"; | ||
hash = "sha256-TOouWcQc3MNyJtaAGUGbaQoaCWVe6g3BPERct/V65vk="; | ||
}; | ||
buildInputs = [ openssl ]; | ||
configureFlags = [ | ||
"--with-ssl-dir=${openssl.dev}" | ||
"--enable-stubs" | ||
]; | ||
meta = { | ||
homepage = "https://core.tcl-lang.org/tcltls/index"; | ||
description = "OpenSSL / RSA-bsafe Tcl extension"; | ||
maintainers = [ lib.maintainers.agbrooks ]; | ||
license = lib.licenses.tcltk; | ||
platforms = lib.platforms.unix; | ||
}; | ||
} | ||
``` | ||
|
||
All Tcl libraries are declared in `pkgs/top-level/tcl-packages.nix` and are defined in `pkgs/development/tcl-modules/`. | ||
If possible, prefer the by-name hierarchy in `pkgs/development/tcl-modules/by-name/`. | ||
Its use is documented in `pkgs/development/tcl-modules/by-name/README.md`. | ||
|
||
All Tcl applications reside elsewhere. | ||
In case a package is used as both a library and an application (for example `expect`), it should be defined in `tcl-packages.nix`, with an alias elsewhere. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19727,6 +19727,12 @@ | |
github = "shhht"; | ||
githubId = 118352823; | ||
}; | ||
shift = { | ||
name = "Vincent Palmer"; | ||
email = "[email protected]"; | ||
github = "shift"; | ||
githubId = 1653; | ||
}; | ||
shikanime = { | ||
name = "William Phetsinorath"; | ||
email = "[email protected]"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.