zc706/shell.nix

25 lines
613 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; });
2019-05-05 20:56:23 +08:00
in
pkgs.stdenv.mkDerivation {
name = "zynq-env";
buildInputs = [
rustPlatform.rust.rustc
rustPlatform.rust.cargo
pkgs.cacert
pkgs.cargo-xbuild
pkgs.openocd pkgs.gdb
pkgs.openssh pkgs.rsync
(import ./nix/mkbootimage.nix { inherit pkgs; })
];
2019-05-05 20:56:23 +08:00
XARGO_RUST_SRC = "${rustPlatform.rust.rustc.src}/src";
2019-05-05 20:56:23 +08:00
shellHook = ''
echo "Run 'cargo xbuild --release -p experiments' to build."
'';
}