mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 17:46:29 +09:00
rustPlatform.buildRustPackage: drop cargoSha256
This commit is contained in:
parent
3ed140c57c
commit
57793b8ca7
2 changed files with 4 additions and 7 deletions
|
@ -59,3 +59,5 @@
|
|||
- `lib.types.listOf`
|
||||
|
||||
- Plasma 5 and Qt 5 based versions of associated software are deprecated in NixOS 25.05, and will be removed in NixOS 25.11. Users are encouraged to upgrade to Plasma 6.
|
||||
|
||||
- `rustPlatform.buildRustPackage` stops handling the deprecated argument `cargoSha256`. Out-of-tree packages that haven't migrated from `cargoSha256` to `cargoHash` now receive errors.
|
||||
|
|
|
@ -83,7 +83,7 @@ lib.extendMkDerivation {
|
|||
cargoDeps
|
||||
else if cargoLock != null then
|
||||
importCargoLock cargoLock
|
||||
else if (args.cargoHash or null == null) && (args.cargoSha256 or null == null) then
|
||||
else if args.cargoHash or null == null then
|
||||
throw "cargoHash, cargoVendorDir, cargoDeps, or cargoLock must be set"
|
||||
else if useFetchCargoVendor then
|
||||
fetchCargoVendor (
|
||||
|
@ -116,15 +116,10 @@ lib.extendMkDerivation {
|
|||
postUnpack
|
||||
cargoUpdateHook
|
||||
;
|
||||
hash = args.cargoHash;
|
||||
name = cargoDepsName;
|
||||
patches = cargoPatches;
|
||||
}
|
||||
// lib.optionalAttrs (args ? cargoHash) {
|
||||
hash = args.cargoHash;
|
||||
}
|
||||
// lib.optionalAttrs (args ? cargoSha256) {
|
||||
sha256 = lib.warn "cargoSha256 is deprecated. Please use cargoHash with SRI hash instead" args.cargoSha256;
|
||||
}
|
||||
// depsExtraArgs
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue