2020-01-21 13:55:18 +08:00
|
|
|
{ pkgs ? import <nixpkgs> {}}:
|
2019-02-14 15:29:42 +08:00
|
|
|
with pkgs;
|
|
|
|
let
|
2019-08-23 17:01:39 +08:00
|
|
|
pythonDeps = import ./pkgs/python-deps.nix { inherit (pkgs) stdenv fetchFromGitHub python3Packages; };
|
2019-02-19 21:18:38 +08:00
|
|
|
|
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;
|
|
|
|
}) {} boards;
|
2019-04-19 19:49:07 +08:00
|
|
|
mainPackages = rec {
|
2019-11-07 19:34:36 +08:00
|
|
|
inherit (pythonDeps) sipyco asyncserial levenshtein pythonparser quamash pyqtgraph-qt5 misoc migen microscope jesd204b migen-axi lit outputcheck;
|
2019-08-25 09:27:12 +08:00
|
|
|
binutils-or1k = callPackage ./pkgs/binutils.nix { platform = "or1k"; target = "or1k-linux"; };
|
2019-08-26 11:22:41 +08:00
|
|
|
binutils-arm = callPackage ./pkgs/binutils.nix { platform = "arm"; target = "armv7-unknown-linux-gnueabihf"; };
|
2019-04-13 16:49:49 +08:00
|
|
|
llvm-or1k = callPackage ./pkgs/llvm-or1k.nix {};
|
2020-04-04 13:02:18 +08:00
|
|
|
rustc = callPackage ./pkgs/rust/rustc-with-crates.nix
|
2019-04-13 15:36:16 +08:00
|
|
|
((stdenv.lib.optionalAttrs (stdenv.cc.isGNU && stdenv.hostPlatform.isi686) {
|
|
|
|
stdenv = overrideCC stdenv gcc6; # with gcc-7: undefined reference to `__divmoddi4'
|
|
|
|
}) //
|
|
|
|
{ inherit llvm-or1k; });
|
2020-04-04 13:02:18 +08:00
|
|
|
cargo = callPackage ./pkgs/rust/cargo.nix { inherit rustc; };
|
|
|
|
cargo-vendor = callPackage ./pkgs/rust/cargo-vendor.nix {};
|
2019-02-19 21:18:38 +08:00
|
|
|
llvmlite-artiq = callPackage ./pkgs/llvmlite-artiq.nix { inherit llvm-or1k; };
|
2019-03-31 22:18:36 +08:00
|
|
|
libartiq-support = callPackage ./pkgs/libartiq-support.nix { inherit rustc; };
|
2019-03-31 22:33:19 +08:00
|
|
|
artiq = callPackage ./pkgs/artiq.nix { inherit binutils-or1k llvm-or1k llvmlite-artiq libartiq-support lit outputcheck; };
|
2019-03-06 23:01:11 +08:00
|
|
|
artiq-env = (pkgs.python3.withPackages(ps: [ artiq ])).overrideAttrs (oldAttrs: { name = "${pkgs.python3.name}-artiq-env-${artiq.version}"; });
|
2019-02-19 21:18:38 +08:00
|
|
|
openocd = callPackage ./pkgs/openocd.nix {};
|
2019-11-07 19:34:36 +08:00
|
|
|
conda-sipyco = import ./conda-build.nix { inherit pkgs; } {
|
|
|
|
name = "conda-sipyco";
|
|
|
|
src = import ./conda-fake-source.nix { inherit pkgs; } {
|
|
|
|
name = "sipyco";
|
|
|
|
inherit (pythonDeps.sipyco) version src;
|
|
|
|
};
|
|
|
|
};
|
2019-02-19 21:18:38 +08:00
|
|
|
conda-artiq = import ./conda-artiq.nix { inherit pkgs; };
|
2019-07-17 20:27:03 +08:00
|
|
|
};
|
2019-04-19 19:49:07 +08:00
|
|
|
in
|
2019-07-17 20:27:03 +08:00
|
|
|
mainPackages // boardPackages
|