mirror of https://github.com/m-labs/artiq.git
flake: add boards dev shell
This commit is contained in:
parent
41caec797e
commit
75f6bdb6a1
20
flake.nix
20
flake.nix
|
@ -381,7 +381,10 @@
|
||||||
|
|
||||||
defaultPackage.x86_64-linux = pkgs.python3.withPackages(ps: [ packages.x86_64-linux.artiq ]);
|
defaultPackage.x86_64-linux = pkgs.python3.withPackages(ps: [ packages.x86_64-linux.artiq ]);
|
||||||
|
|
||||||
devShell.x86_64-linux = pkgs.mkShell {
|
# Main development shell with everything you need to develop ARTIQ on Linux.
|
||||||
|
# ARTIQ itself is not included in the environment, you can make Python use the current sources using e.g.
|
||||||
|
# export PYTHONPATH=`pwd`:$PYTHONPATH
|
||||||
|
devShells.x86_64-linux.default = pkgs.mkShell {
|
||||||
name = "artiq-dev-shell";
|
name = "artiq-dev-shell";
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
(pkgs.python3.withPackages(ps: with packages.x86_64-linux; [ migen misoc ps.paramiko microscope ] ++ artiq.propagatedBuildInputs ))
|
(pkgs.python3.withPackages(ps: with packages.x86_64-linux; [ migen misoc ps.paramiko microscope ] ++ artiq.propagatedBuildInputs ))
|
||||||
|
@ -408,6 +411,21 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Lighter development shell optimized for building firmware and flashing boards.
|
||||||
|
devShells.x86_64-linux.boards = pkgs.mkShell {
|
||||||
|
name = "artiq-boards-shell";
|
||||||
|
buildInputs = [
|
||||||
|
(pkgs.python3.withPackages(ps: with packages.x86_64-linux; [ migen misoc artiq ]))
|
||||||
|
rust
|
||||||
|
pkgs.cargo-xbuild
|
||||||
|
pkgs.llvmPackages_11.clang-unwrapped
|
||||||
|
pkgs.llvm_11
|
||||||
|
pkgs.lld_11
|
||||||
|
packages.x86_64-linux.vivado
|
||||||
|
packages.x86_64-linux.openocd-bscanspi
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
packages.aarch64-linux = {
|
packages.aarch64-linux = {
|
||||||
openocd-bscanspi = openocd-bscanspi-f pkgs-aarch64;
|
openocd-bscanspi = openocd-bscanspi-f pkgs-aarch64;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue