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

rustPlatform.cargoSetupHook: dereference symlinks in cargoDeps #218472

Merged
merged 1 commit into from
Mar 4, 2023

Conversation

figsoda
Copy link
Member

@figsoda figsoda commented Feb 26, 2023

unpackFile doesn't dereference symlinks if cargoDeps is a directory, and some cargo builds run into permission issues because the files the symlinks point to are not writable.

Description of changes
Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • 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/)
  • 23.05 Release Notes (or backporting 22.11 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.

unpackFile doesn't dereference symlinks if cargoDeps is a directory, and
some cargo builds run into permission issues because the files the
symlinks point to are not writable.
@figsoda
Copy link
Member Author

figsoda commented Feb 27, 2023

@ofborg build fd binserve wezterm sapling

@figsoda figsoda merged commit eedbf71 into NixOS:staging Mar 4, 2023
@figsoda figsoda deleted the cargo-setup branch March 4, 2023 00:40
@zowoq
Copy link
Contributor

zowoq commented Mar 8, 2023

Looks like it was a dupe of #211249?

@figsoda
Copy link
Member Author

figsoda commented Mar 8, 2023

It was, I didn't see that pr

benjaminedwardwebb added a commit to benjaminedwardwebb/nixpkgs that referenced this pull request Mar 29, 2023
Fix the dmenu-rs package derivation, which was broken after changes to
the rustPlatform nixpkgs tooling. The issue linked below was
specifically raised on an early version of NixOS 23.05.

This is through no fault of those changes. In fact, the brittle hack in
the dmenu-rs derivation that broke can now be entirely removed because
of the very changes that broke them.

This commit also bumps dmenu-rs from 5.5.1 to 5.5.2. See upstream for
details on the changes.

See NixOS#222351
See NixOS#218472
See https://github.com/Shizcow/dmenu-rs
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