1
0
Fork 0
zynq-rs/shell.nix

27 lines
717 B
Nix
Raw Normal View History

2019-05-05 20:56:23 +08:00
let
pkgs = import <nixpkgs> { overlays = [ (import ./nix/mozilla-overlay.nix) ]; };
rustPlatform = (import ./nix/rust-platform.nix { inherit pkgs; });
2020-10-13 18:43:37 +08:00
cargo-xbuild = (import ./default.nix).cargo-xbuild;
2019-05-05 20:56:23 +08:00
in
pkgs.stdenv.mkDerivation {
name = "zynq-env";
buildInputs = [
rustPlatform.rust.rustc
rustPlatform.rust.cargo
pkgs.cacert
2020-10-13 18:43:37 +08:00
cargo-xbuild
pkgs.openocd pkgs.gdb
pkgs.openssh pkgs.rsync
2021-01-15 11:16:37 +08:00
pkgs.llvmPackages_9.clang-unwrapped
(import ./nix/mkbootimage.nix { inherit pkgs; })
];
2019-05-05 20:56:23 +08:00
XARGO_RUST_SRC = "${rustPlatform.rust.rustc}/lib/rustlib/src/rust/library";
2019-05-05 20:56:23 +08:00
shellHook = ''
echo "Run 'cargo xbuild --release -p ...' to build."
'';
}