2019-02-14 15:29:42 +08:00
|
|
|
{ pkgs ? import <nixpkgs> {}}:
|
|
|
|
with pkgs;
|
|
|
|
let
|
2019-02-19 21:18:38 +08:00
|
|
|
pythonDeps = callPackage ./pkgs/python-deps.nix {};
|
|
|
|
|
2019-02-14 15:29:42 +08:00
|
|
|
# this code was copied from nipxkgs rev. ffafe9 (nixcloud team) and slightly modified
|
|
|
|
rust = callPackage ./pkgs/rust
|
|
|
|
(stdenv.lib.optionalAttrs (stdenv.cc.isGNU && stdenv.hostPlatform.isi686) {
|
|
|
|
stdenv = overrideCC stdenv gcc6; # with gcc-7: undefined reference to `__divmoddi4'
|
|
|
|
});
|
|
|
|
llvm-src = callPackage ./fetch-llvm-clang.nix {};
|
2019-02-15 18:17:34 +08:00
|
|
|
|
|
|
|
boards = [
|
|
|
|
{ target = "kasli"; variant = "tester"; }
|
|
|
|
{ target = "kc705"; variant = "nist_clock"; }
|
|
|
|
];
|
|
|
|
boardPackages = pkgs.lib.lists.foldr (board: start:
|
|
|
|
let
|
|
|
|
boardBinaries = import ./artiq-board.nix { inherit pkgs; } {
|
|
|
|
target = board.target;
|
|
|
|
variant = board.variant;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
start // {
|
|
|
|
"artiq-board-${board.target}-${board.variant}" = boardBinaries;
|
|
|
|
"conda-artiq-board-${board.target}-${board.variant}" = import ./conda-artiq-board.nix { inherit pkgs; } {
|
|
|
|
target = board.target;
|
|
|
|
variant = board.variant;
|
2019-02-15 22:34:56 +08:00
|
|
|
boardBinaries = boardBinaries;
|
2019-02-15 18:17:34 +08:00
|
|
|
};
|
|
|
|
}) {} boards;
|
2019-02-19 21:18:38 +08:00
|
|
|
in
|
|
|
|
rec {
|
|
|
|
inherit (rust) rustc;
|
2019-02-22 12:54:10 +08:00
|
|
|
inherit (pythonDeps) asyncserial levenshtein pythonparser quamash pyqtgraph-qt5 misoc migen microscope jesd204b lit outputcheck sphinx-argparse wavedrom sphinxcontrib-wavedrom;
|
2019-02-19 21:18:38 +08:00
|
|
|
binutils-or1k = callPackage ./pkgs/binutils-or1k.nix {};
|
|
|
|
llvm-or1k = callPackage ./pkgs/llvm-or1k.nix { inherit llvm-src; };
|
|
|
|
llvmlite-artiq = callPackage ./pkgs/llvmlite-artiq.nix { inherit llvm-or1k; };
|
|
|
|
artiq = callPackage ./pkgs/artiq.nix { inherit binutils-or1k; inherit llvm-or1k; inherit llvmlite-artiq; };
|
2019-02-26 16:43:51 +08:00
|
|
|
artiq-manual = callPackage ./pkgs/artiq-manual.nix { };
|
2019-02-19 21:18:38 +08:00
|
|
|
openocd = callPackage ./pkgs/openocd.nix {};
|
|
|
|
conda-artiq = import ./conda-artiq.nix { inherit pkgs; };
|
|
|
|
} // boardPackages
|