-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshell.nix
65 lines (55 loc) · 1.43 KB
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# A nix-shell expression with the collection of build inputs for the
# various board expressions. Can be helpful when developing and
# debugging LiteX.
{ pkgs ? (import <nixpkgs> { }), enableVivado ? false, skipPkgChecks ? true }:
with pkgs;
let
# import the litex package set and overlay it onto nixpkgs so we can
# modify the packages inside it
litexImport = (import ./pkgs { inherit pkgs; skipChecks = skipPkgChecks; });
litexPkgs = (import pkgs.path {
overlays = [
litexImport.overlay
(self: super: {
maintenance = litexImport.maintenance;
})
];
});
in
pkgs.mkShell {
name = "litex-shell";
buildInputs = with litexPkgs; with litexPkgs.python3Packages; [
python3Packages.migen
openocd
litex
litex-boards
litedram
liteeth
liteiclink
litescope
litespi
litepcie
litehyperbus
pythondata-cpu-vexriscv
pythondata-cpu-vexriscv_smp
pkgsCross.riscv64.buildPackages.gcc
gnumake
python3Packages.pyvcd
# For simulation
pythondata-misc-tapcfg
libevent
json_c
zlib
verilator
# For ECP5 bitstream builds
yosys
nextpnr
icestorm
# For executing the maintenance scripts of this repository
maintenance
# For LiteX development
python3Packages.pytest
python3Packages.pytest-xdist
python3Packages.pytest-subtests
] ++ (if enableVivado then [ (pkgs.callPackage ./pkgs/vivado { }) ] else [ ]);
}