2020-05-01 10:07:38 +08:00
|
|
|
let
|
2020-09-09 16:58:37 +08:00
|
|
|
zynq-rs = (import ./zynq-rs.nix);
|
|
|
|
pkgs = import <nixpkgs> { overlays = [ (import "${zynq-rs}/nix/mozilla-overlay.nix") ]; };
|
|
|
|
rustPlatform = (import "${zynq-rs}/nix/rust-platform.nix" { inherit pkgs; });
|
2020-10-13 19:12:55 +08:00
|
|
|
cargo-xbuild = (import zynq-rs).cargo-xbuild;
|
2020-05-01 10:07:38 +08:00
|
|
|
artiq-fast = <artiq-fast>;
|
|
|
|
artiqpkgs = import "${artiq-fast}/default.nix" { inherit pkgs; };
|
|
|
|
vivado = import "${artiq-fast}/vivado.nix" { inherit pkgs; };
|
2020-09-09 18:44:12 +08:00
|
|
|
zc706-szl = (import zynq-rs).zc706-szl;
|
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-10-13 21:51:40 +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
|
|
|
|
|
2021-02-07 14:44:09 +08:00
|
|
|
(pkgs.python3.withPackages(ps: (with artiqpkgs; [ migen migen-axi misoc artiq artiq-netboot ps.jsonschema ])))
|
2020-05-01 10:07:38 +08:00
|
|
|
vivado
|
2020-07-07 19:39:30 +08:00
|
|
|
artiqpkgs.binutils-arm
|
2020-05-01 10:50:10 +08:00
|
|
|
|
2020-09-09 16:58:37 +08:00
|
|
|
(import "${zynq-rs}/nix/mkbootimage.nix" { inherit pkgs; })
|
2020-05-01 10:07:38 +08:00
|
|
|
];
|
|
|
|
|
2021-01-15 08:02:15 +08:00
|
|
|
XARGO_RUST_SRC = "${rustPlatform.rust.rustc}/lib/rustlib/src/rust/library";
|
2021-06-25 15:57:39 +08:00
|
|
|
CLANG_EXTRA_INCLUDE_DIR = "${pkgs.llvmPackages_9.clang-unwrapped.lib}/lib/clang/9.0.1/include";
|
2020-09-09 15:44:29 +08:00
|
|
|
OPENOCD_ZYNQ = "${zynq-rs}/openocd";
|
2020-09-09 18:44:12 +08:00
|
|
|
SZL = "${zc706-szl}/szl.elf";
|
2020-05-01 10:07:38 +08:00
|
|
|
}
|