forked from M-Labs/zynq-rs
1
0
Fork 0

default.nix: fix name, rm debug

This commit is contained in:
Astro 2020-01-26 01:50:14 +01:00
parent 266b0dec1a
commit d3142ab6fa
1 changed files with 3 additions and 4 deletions

View File

@ -32,7 +32,6 @@ let
nativeBuildInputs = nativeBuildInputs =
nativeBuildInputs ++ [ pkgs.cargo-xbuild ]; nativeBuildInputs ++ [ pkgs.cargo-xbuild ];
buildPhase = '' buildPhase = ''
set -x
pushd ${crateSubdir} pushd ${crateSubdir}
cargo xbuild --release --frozen \ cargo xbuild --release --frozen \
--no-default-features \ --no-default-features \
@ -46,7 +45,7 @@ let
cp target/armv7-none-eabihf/release/${name} $out/${name}.elf cp target/armv7-none-eabihf/release/${name} $out/${name}.elf
''; '';
}); });
xbuildCrate = crate: features: xbuildRustPackage rec { xbuildCrate = name: crate: features: xbuildRustPackage rec {
name = "${crate}"; name = "${crate}";
src = ./.; src = ./.;
crateSubdir = crate; crateSubdir = crate;
@ -57,7 +56,7 @@ let
in { in {
inherit pkgs rustPlatform rustcSrc gcc; inherit pkgs rustPlatform rustcSrc gcc;
zc706 = { zc706 = {
zc706-experiments = xbuildCrate "experiments" "target_zc706"; experiments-zc706 = xbuildCrate "experiments-zc706" "experiments" "target_zc706";
cora-experiments = xbuildCrate "experiments" "target_cora_z7_10"; experiments-cora = xbuildCrate "experiments-cora" "experiments" "target_cora_z7_10";
}; };
} }