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

Not possible to override crane-utils or its dependencies #551

Open
fracek opened this issue Mar 17, 2024 · 2 comments
Open

Not possible to override crane-utils or its dependencies #551

fracek opened this issue Mar 17, 2024 · 2 comments

Comments

@fracek
Copy link

fracek commented Mar 17, 2024

Hello, I need to compile my project using an older nixpkgs (23.05). The issue I'm facing is that it tries to compile crane-utils using nix rustPlatform which uses Cargo 1.69 but the minimum required version to compile crane-utils is 1.70.

I haven't figured out how to override the rustPlatform used to build crane-utils. If I override crane-utils in an overlay it's not used by crane anyway.

I made a minimal repository to reproduce the issue here

@ipetkov
Copy link
Owner

ipetkov commented Mar 19, 2024

Hi @fracek thanks for the report! At this time we don't have a good way to override/overlay crane-utils:

craneUtils = pkgsBuildBuild.callPackage ../pkgs/crane-utils { };

In the mean time you can get unblocked by either using crane-0.15.1 or using the 23.11 release branch. 23.05 is EOL and we dropped support for it in crane-0.16.0

@ipetkov ipetkov changed the title Override rustPlatform used to compile crane-utils Not possible to override crane-utils or its dependencies Mar 19, 2024
@fracek
Copy link
Author

fracek commented Mar 21, 2024

Thank you, unfortunately I have to target 23.05 to link against a version of GLIBC older than the one included in Ubuntu 22.04 LTS. But I also understand it's a niche use case so feel free to close the issue if it's not worth supporting!

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

No branches or pull requests

2 participants