Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tclPackages.jimlib: init at 0.15.0 #352558

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

Conversation

theneosloth
Copy link
Contributor

https://gitlab.com/dbohdan/jimlib

Utility library for Jimtcl and Tcl.

Tested a few of the functions with Tcl 8.6, which is the current version for mkTclDerivation

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@nix-owners nix-owners bot requested a review from fgaz October 31, 2024 08:05
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a separate commit: maintainers: add neosloth

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added as a separate commit

pkgs/development/tcl-modules/by-name/ji/jimlib/package.nix Outdated Show resolved Hide resolved
pkgs/development/tcl-modules/by-name/ji/jimlib/package.nix Outdated Show resolved Hide resolved
cp $src/pkgIndex.tcl $out/lib/jimlib/pkgIndex.tcl
'';

meta = with lib; {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We try to avoid with lib now. Use lib.platforms.all, lib.maintainers, and lib.licenses instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed with lib

meta = with lib; {
homepage = "https://wiki.tcl-lang.org/page/jimlib";
description = "Jimlib is a personal standard library for Jim Tcl.";
license = licenses.mit;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the readme:

MIT, Tcl, and BSD.
See the top of jimlib.tcl.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the license block. The line mentioning BSD ](https://gitlab.com/dbohdan/jimlib/-/blob/master/jimlib.tcl#L77 ) refers to code reused from tcllib, which is listed as Tcl licensed on nixpkgs.

Doesn't seem like there's a full license text included for BSD in either jimlib or upstream tcllib so I omitted it as I can't determine which version it was originally referring to

Copy link
Member

@fgaz fgaz Oct 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to dbohdan it's bsd3

20:48:31 <dbohdan[phone]> fgaz: You're welcome! I see one of the licenses listed for the package is lib.licenses.bsd0. That's 0BSD, a rare public-domain-equivalent license. It is likely not what the developers of try (dkf and aku) meant. While I am not sure what particular license they meant by "BSD licensed", I think the safe assumption is lib.licenses.bsd3.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thank you for checking. Updated

pkgs/development/tcl-modules/by-name/ji/jimlib/package.nix Outdated Show resolved Hide resolved
'';

meta = with lib; {
homepage = "https://wiki.tcl-lang.org/page/jimlib";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure the wiki page can be considered the official homepage. I'd use the gitlab page instead. Up to you.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gitlab makes sense to me, updated


mkTclDerivation rec {
pname = "jimlib";
version = "0.15.0-unstable-2024-10-31";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need the unstable version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The git tag hasn't been updated in several years. This is the version in the source file, but there have been more commits since then that haven't bumped the version. Let me know if there's a more appropriate way to tag this

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The git tag hasn't been updated in several years

0.16.0 is now out. Ask and you shall receive :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated and set rev to use the new tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants