rust: Add support for managing target JSON in Nix

This commit is contained in:
John Ericson
2020-10-14 03:37:29 +00:00
parent 6866f26c89
commit c0df12de5d
8 changed files with 71 additions and 13 deletions

View File

@@ -63,7 +63,8 @@ redoxRustPlatform.buildRustPackage rec {
DESTDIR=$out make install
'';
TARGET = buildPackages.rust.toRustTarget stdenvNoCC.targetPlatform;
# TODO: should be hostPlatform
TARGET = buildPackages.rust.toRustTargetSpec stdenvNoCC.targetPlatform;
cargoSha256 = "1fzz7ba3ga57x1cbdrcfrdwwjr70nh4skrpxp4j2gak2c3scj6rz";