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

[Backport release-24.05] liblxi: fix darwin build, use finalAttrs #319868

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

github-actions[bot]
Copy link
Contributor

Bot-based backport to release-24.05, triggered by a label in #311131.

  • Before merging, ensure that this backport is acceptable for the release.
    • Even as a non-commiter, if you find that it is not acceptable, leave a comment.

@ofborg ofborg bot added the 6.topic: darwin Running or building packages on Darwin label Jun 14, 2024
@ofborg ofborg bot requested a review from vq June 14, 2024 18:47
pname = "liblxi";
version = "1.20";

src = fetchFromGitHub {
owner = "lxi-tools";
repo = "liblxi";
rev = "v${version}";
Copy link
Contributor

Choose a reason for hiding this comment

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

The finalAttrs pattern is not really helpful to override version, because the hash is not updated at the same time. See #310373 and #315337 (comment). There is no clear path forward, yet, but migrating to the finalAttrs pattern is not an improvement, imho.

Copy link
Member

@wegank wegank Jun 17, 2024

Choose a reason for hiding this comment

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

One of the reasons finalAttrs appeals to me is that I can do something like this.

somePackage.overrideAttrs (previousAttrs: {
  version = newVersion;
  src = previousAttrs.src.overrideAttrs {
    outputHash = newHash;
  };
});

@wegank wegank merged commit c0273b5 into release-24.05 Jun 17, 2024
21 checks passed
@wegank wegank deleted the backport-311131-to-release-24.05 branch June 17, 2024 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants