25 lines
607 B
Nix
25 lines
607 B
Nix
let
|
|
mozillaOverlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
|
|
pkgs = import <nixpkgs> { overlays = [ mozillaOverlay ]; };
|
|
in
|
|
with pkgs;
|
|
let
|
|
project = callPackage ./default.nix {};
|
|
in
|
|
with project;
|
|
stdenv.mkDerivation {
|
|
name = "zynq-env";
|
|
buildInputs = (with rustPlatform.rust; [
|
|
rustc cargo
|
|
cargo-xbuild rustcSrc
|
|
]) ++ (with pkgs; [ openocd gdb ]);
|
|
|
|
# Set Environment Variables
|
|
RUST_BACKTRACE = 1;
|
|
XARGO_RUST_SRC = "${rustcSrc}/src";
|
|
|
|
shellHook = ''
|
|
echo "Run 'cargo xbuild --release -p experiments' to build."
|
|
'';
|
|
}
|