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

18 lines
751 B
Nix
Raw Normal View History

{ pkgs ? import <nixpkgs> {}}:
with pkgs;
let
# 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 {};
in rec {
inherit (rust) cargo rustc;
inherit (callPackage ./pkgs/python3Packages.nix {}) migen misoc;
binutils-or1k = callPackage ./binutils-or1k.nix {};
llvm-or1k = callPackage ./llvm-or1k.nix { inherit llvm-src; };
llvmlite = callPackage ./llvmlite.nix { inherit llvm-or1k; };
#artiq = callPackage ./artiq.nix { inherit binutils-or1k; };
}