-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
47 lines (46 loc) · 1.36 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
{
# git ls-remote https://github.com/nixos/nixpkgs nixos-22.05. Last updated: 2022-07-23.
pkgs ? import (fetchTarball("https://github.com/NixOS/nixpkgs/archive/e3583ad.tar.gz")) {}
}:
with pkgs;
let
amaranth-boards-mch2022 = python3Packages.amaranth-boards.overrideAttrs (old: {
pname = "amaranth_boards";
version = "0.1";
realVersion = "0.1.dev210+g${lib.substring 0 7 amaranth-boards-mch2022.src.rev}";
src = fetchFromGitHub {
owner = "amaranth-lang";
repo = "amaranth-boards";
rev = "fb430ff035cfb7c44af7f1e517e2bf032529577a";
sha256 = "072psml2mdn60xbfvd0sjnf7j7hi9myiyqx1zaxs786z7axmm0ly";
};
pythonImportsCheck = [ "${amaranth-boards-mch2022.pname}" ];
});
amaranth-soc = python3Packages.amaranth-boards.overrideAttrs (old: {
pname = "amaranth_soc";
version = "0";
realVersion = "0";
src = fetchFromGitHub {
owner = "amaranth-lang";
repo = "amaranth-soc";
rev = "217d4ea76ad3b3bbf146980d168bc7b3b9d95a18";
sha256 = "106r0gdd3mv21pq099x0ifgg9jw0rmnphhx4swksazgvcbrskj3l";
};
pythonImportsCheck = [ "${amaranth-soc.pname}" ];
});
in
mkShell {
buildInputs = [
(python3.withPackages (ps: with ps;[
pyusb
pyserial
amaranth
amaranth-soc
amaranth-boards-mch2022
]))
yosys
icestorm nextpnr
gtkwave
symbiyosys boolector yices
];
}