Skip to content

[Backport release-25.11] inetutils: switch to finalAttrs - #492765

Merged
Ma27 merged 1 commit into
NixOS:release-25.11from
benaryorg:backport-491660-to-release-25.11
Feb 21, 2026
Merged

Ma27 merged 1 commit into
NixOS:release-25.11from
benaryorg:backport-491660-to-release-25.11

Conversation

@benaryorg

@benaryorg benaryorg commented Feb 21, 2026 •

Copy link
Copy Markdown
Contributor

Dynamic attrs in rec are weird and deprecated in Lix. Switch to finalAttrs to keep the workaround and not the deprecation.

(cherry picked from commit 04a4fd5)


(commit message verbatim above)

Note that the original went through staging, however this has already hit release for 25.11, and evaluation doesn't change.
For this reason I'm targeting release-25.11 directly.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Dynamic attrs in rec are weird and deprecated in Lix.
Switch to finalAttrs to keep the workaround and not the deprecation.

(cherry picked from commit 04a4fd5)

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This report is automatically generated by the PR / Check / cherry-pick CI workflow.

Some of the commits in this PR require the author's and reviewer's attention.

Sometimes it is not possible to cherry-pick exactly the same patch.
This most frequently happens when resolving merge conflicts.
The range-diff will help to review the resolution of conflicts.

If you need to merge this PR despite the warnings, please dismiss this review shortly before merging.

Warning

Difference between 8e4929f and original 04a4fd5 may warrant inspection.

Show diff
@@ Commit message
     Dynamic attrs in rec are weird and deprecated in Lix.
     Switch to finalAttrs to keep the workaround and not the deprecation.
 
+    (cherry picked from commit 04a4fd569a916a521252f0af5dddcdc6ff6e55c4)
+
  ## pkgs/by-name/in/inetutils/package.nix ##
 @@
    libxcrypt,
@@ pkgs/by-name/in/inetutils/package.nix
    version = "2.7";
  
    src = fetchurl {
--    url = "mirror://gnu/inetutils/inetutils-${version}.tar.gz";
+-    url = "mirror://gnu/${pname}/${pname}-${version}.tar.gz";
 +    url = "mirror://gnu/inetutils/inetutils-${finalAttrs.version}.tar.gz";
      hash = "sha256-oVa+HN48XA/+/CYhgNk2mmBIQIeQeqVUxieH0vQOwIY=";
    };

Hint: The full diffs are also available in the runner logs with slightly better highlighting.

@benaryorg
benaryorg requested review from K900 and Ma27 February 21, 2026 13:07
@benaryorg

Copy link
Copy Markdown
Contributor Author

Regarding the github-actions bot; the diff is due to 25.11 using pname as opposed to the hardcoded inetutils string for which the patch was written.
This is fine as far as I can tell.

@nixpkgs-ci
nixpkgs-ci Bot requested a review from matthewbauer February 21, 2026 13:10
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 4.workflow: backport This targets a stable branch labels Feb 21, 2026
@Ma27
Ma27 dismissed github-actions[bot]’s stale review February 21, 2026 13:15

Merge conflict is expected.

@Ma27
Ma27 added this pull request to the merge queue Feb 21, 2026
Merged via the queue into NixOS:release-25.11 with commit 27a9acb Feb 21, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.workflow: backport This targets a stable branch 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants