Skip to content

lib.customisation.callPackageWith: fix line number interpolation#435941

Merged
wolfgangwalther merged 1 commit intoNixOS:masterfrom
MattSturgeon:fix-lib-customisation
Aug 22, 2025
Merged

lib.customisation.callPackageWith: fix line number interpolation#435941
wolfgangwalther merged 1 commit intoNixOS:masterfrom
MattSturgeon:fix-lib-customisation

Conversation

@MattSturgeon
Copy link
Contributor

@MattSturgeon MattSturgeon commented Aug 22, 2025

Fixes #433101 (comment)

We need to use toString on loc.line because it is an int.

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.

Add a 👍 reaction to pull requests you find important.

We need to use `toString` on `loc.line` because it is an int.
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 6.topic: lib The Nixpkgs function library labels Aug 22, 2025
Copy link
Contributor

@wolfgangwalther wolfgangwalther left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM.

Copy link
Contributor

@philiptaron philiptaron left a comment

Choose a reason for hiding this comment

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

Would that there were a test of this.

@wolfgangwalther wolfgangwalther merged commit 2f0df06 into NixOS:master Aug 22, 2025
29 of 32 checks passed
@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 2 This PR was reviewed and approved by two persons. label Aug 22, 2025
@wolfgangwalther
Copy link
Contributor

Would that there were a test of this.

Tested for real in #435928, works. But yeah a lib test would be nice in principle. Although... you'd be quickly discovering that callPackagesWith is lacking this kind of error reporting. So this will certainly lead to more work... :D

@philiptaron
Copy link
Contributor

Would that there were a test of this.

So this will certainly lead to more work... :D

Yes, hence the subjunctive mood.

@MattSturgeon MattSturgeon deleted the fix-lib-customisation branch August 22, 2025 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: lib The Nixpkgs function library 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 2 This PR was reviewed and approved by two persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants