2020-05-01 10:07:38 +08:00
|
|
|
let
|
2020-09-09 15:19:43 +08:00
|
|
|
pkgs = import <nixpkgs> { overlays = [ (import ./mozilla-overlay.nix) ]; };
|
2020-05-01 10:07:38 +08:00
|
|
|
artiq-fast = <artiq-fast>;
|
|
|
|
rustPlatform = (import ./rustPlatform.nix { inherit pkgs; });
|
|
|
|
artiqpkgs = import "${artiq-fast}/default.nix" { inherit pkgs; };
|
|
|
|
vivado = import "${artiq-fast}/vivado.nix" { inherit pkgs; };
|
2020-08-25 17:39:42 +08:00
|
|
|
cargo-xbuild = import ./cargo-xbuild.nix { inherit pkgs; };
|
2020-05-01 10:07:38 +08:00
|
|
|
in
|
|
|
|
pkgs.stdenv.mkDerivation {
|
|
|
|
name = "artiq-zynq-env";
|
|
|
|
buildInputs = [
|
|
|
|
pkgs.gnumake
|
|
|
|
rustPlatform.rust.rustc
|
|
|
|
rustPlatform.rust.cargo
|
2020-07-02 21:50:19 +08:00
|
|
|
pkgs.llvmPackages_9.llvm
|
|
|
|
pkgs.llvmPackages_9.clang-unwrapped
|
2020-05-01 10:07:38 +08:00
|
|
|
pkgs.cacert
|
2020-08-25 17:39:42 +08:00
|
|
|
cargo-xbuild
|
2020-05-01 10:07:38 +08:00
|
|
|
|
2020-06-05 11:45:56 +08:00
|
|
|
pkgs.openocd
|
2020-05-01 10:07:38 +08:00
|
|
|
pkgs.openssh pkgs.rsync
|
|
|
|
|
|
|
|
(pkgs.python3.withPackages(ps: (with artiqpkgs; [ migen migen-axi misoc artiq ])))
|
|
|
|
vivado
|
2020-07-07 19:39:30 +08:00
|
|
|
artiqpkgs.binutils-arm
|
2020-05-01 10:50:10 +08:00
|
|
|
|
|
|
|
(import ./mkbootimage.nix { inherit pkgs; })
|
2020-05-01 10:07:38 +08:00
|
|
|
];
|
|
|
|
|
|
|
|
XARGO_RUST_SRC = "${rustPlatform.rust.rustc.src}/src";
|
|
|
|
}
|