forked from M-Labs/nac3
29 lines
870 B
Nix
29 lines
870 B
Nix
|
let
|
||
|
mozillaOverlay = import (builtins.fetchTarball "https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz");
|
||
|
pkgs = import <nixpkgs> { overlays = [ mozillaOverlay ]; };
|
||
|
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; };
|
||
|
in
|
||
|
pkgs.stdenv.mkDerivation {
|
||
|
name = "artiq-zynq-env";
|
||
|
buildInputs = [
|
||
|
pkgs.gnumake
|
||
|
rustPlatform.rust.rustc
|
||
|
rustPlatform.rust.cargo
|
||
|
pkgs.clang_9
|
||
|
pkgs.cacert
|
||
|
pkgs.cargo-xbuild
|
||
|
|
||
|
pkgs.openssh pkgs.rsync
|
||
|
|
||
|
(pkgs.python3.withPackages(ps: (with artiqpkgs; [ migen migen-axi misoc artiq ])))
|
||
|
vivado
|
||
|
pkgs.llvm_9
|
||
|
pkgs.lld_9
|
||
|
];
|
||
|
|
||
|
XARGO_RUST_SRC = "${rustPlatform.rust.rustc.src}/src";
|
||
|
}
|