-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
Impossible to override arguments of rustPlatform.fetchCargoVendor #415397
Copy link
Copy link
Open
Labels
0.kind: bugSomething is brokenSomething is broken0.kind: regressionSomething that worked before working no longerSomething that worked before working no longer2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.mdhttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: rustGeneral-purpose programming language emphasizing performance, type safety, and concurrency.General-purpose programming language emphasizing performance, type safety, and concurrency.
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is brokenSomething is broken0.kind: regressionSomething that worked before working no longerSomething that worked before working no longer2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.mdhttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: rustGeneral-purpose programming language emphasizing performance, type safety, and concurrency.General-purpose programming language emphasizing performance, type safety, and concurrency.
Fields
Give feedbackNo fields configured for issues without a type.
It's practically impossible to override the src and hash arguments of
rustPlatform.fetchCargoVendor. You can copy code from Nixpkgs and try to reusevendorStaging, but there's a clear issue here.The switch from
fetchCargoTarballtofetchCargoVendorbroke the previous way of usingoverrideAttrsand settingsrcandoutputHash.I'm unsure how to amend this myself as the FOD in
fetchCargoVendoris wrapped. Maybe something likelib.extendMkDerivationcould be used here?The issue with
buildRustPackagenot yet fully utilizingfinalAttrsis adjacent but not directly in the scope of this issue, but I'll document it here regardless:Related:
@9999years @amesgen @ShamrockLee
#194475 (comment) #107070 #382550