Browse Source

follow changes in zynq-rs

master
Astro 9 months ago
parent
commit
a5ccabb8e6
  1. 2
      default.nix
  2. 2
      shell.nix
  3. 4
      zynq-rs.nix

2
default.nix

@ -30,7 +30,7 @@ let
pkgs.llvmPackages_9.clang-unwrapped
];
buildPhase = ''
export XARGO_RUST_SRC="${rustPlatform.rust.rustc.src}/library"
export XARGO_RUST_SRC="${rustPlatform.rust.rustc}/lib/rustlib/src/rust/library"
export CARGO_HOME=$(mktemp -d cargo-home.XXX)
make TARGET=${target} VARIANT=${variant}
'';

2
shell.nix

@ -29,7 +29,7 @@ in
(import "${zynq-rs}/nix/mkbootimage.nix" { inherit pkgs; })
];
XARGO_RUST_SRC = "${rustPlatform.rust.rustc.src}/library";
XARGO_RUST_SRC = "${rustPlatform.rust.rustc}/lib/rustlib/src/rust/library";
OPENOCD_ZYNQ = "${zynq-rs}/openocd";
SZL = "${zc706-szl}/szl.elf";
}

4
zynq-rs.nix

@ -3,6 +3,6 @@ let
in
pkgs.fetchgit {
url = "https://git.m-labs.hk/M-Labs/zynq-rs.git";
rev = "966e43e14ed26e883a2de03d56cedde964283269";
sha256 = "15lfvc5dwx3qvkba10p0fjx2dzgsyk57ivp4izwg2dhwdcnikk6j";
rev = "b4d91e7904423b6477eb1f25b8cc3940e197e9c2";
sha256 = "0g77s9jmbyxzkpnn2rs2sya5ia2admgkn74kzl2h1n4nckfk2nn6";
}
Loading…
Cancel
Save