forked from M-Labs/artiq
1
0
Fork 0
artiq/nix/artiq-dev.nix

38 lines
866 B
Nix
Raw Normal View History

{runScript ? "", extraProfile ? ""}:
2019-01-01 22:25:56 +08:00
let
pkgs = import <nixpkgs> {};
artiqpkgs = import ./default.nix { inherit pkgs; };
in
pkgs.buildFHSUserEnv {
name = "artiq-dev";
targetPkgs = pkgs: (
with pkgs; [
ncurses5
gnumake
zlib
libuuid
2019-01-01 22:25:56 +08:00
xorg.libSM
xorg.libICE
xorg.libXrender
xorg.libX11
xorg.libXext
xorg.libXtst
xorg.libXi
2019-01-02 16:34:11 +08:00
(python3.withPackages(ps: with ps; [ jinja2 numpy artiqpkgs.migen artiqpkgs.microscope artiqpkgs.misoc artiqpkgs.jesd204b artiqpkgs.artiq ]))
git
2019-01-01 22:25:56 +08:00
] ++
(with artiqpkgs; [
rustc
cargo
binutils-or1k
llvm-or1k
openocd
])
);
runScript = runScript;
2019-01-01 22:25:56 +08:00
profile = ''
export TARGET_AR=${artiqpkgs.binutils-or1k}/bin/or1k-linux-ar
'' + extraProfile;
2019-01-01 22:25:56 +08:00
}