gnu: corrosion: Honor CARGO_BUILD_TARGET.

This change integrates Rust cross-compilation support from Guix.

* gnu/packages/patches/corrosion-honor-CARGO_BUILD_TARGET.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/cmake.scm (corrosion)[source]: Apply it.

Change-Id: I319f07f49e390ed84286f35aaa0bd3cad2ad70db
This commit is contained in:
Hilton Chain 2025-04-22 20:53:50 +08:00
parent 8605db19fd
commit 141d39db98
No known key found for this signature in database
GPG key ID: ACC66D09CA528292
3 changed files with 30 additions and 1 deletions

View file

@ -508,7 +508,9 @@ format (either JSON or XML).
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1bylfjji4yw88r00hgb69nfl9lz73bhc7q3n64myif4alr4b8ypx"))))
(base32 "1bylfjji4yw88r00hgb69nfl9lz73bhc7q3n64myif4alr4b8ypx"))
(patches
(search-patches "corrosion-honor-CARGO_BUILD_TARGET.patch"))))
(build-system cmake-build-system)
(arguments
(list