2024-04-14 06:16:22 +00:00
|
|
|
{
|
|
|
|
description = "ECP5 toolchain template project";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = inputs@{ nixpkgs, ... }:
|
|
|
|
let
|
|
|
|
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
|
|
|
|
forAllSystems = function:
|
|
|
|
nixpkgs.lib.genAttrs systems (system: function (
|
|
|
|
import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
overlays = []; # patches, version pins here.
|
|
|
|
}
|
|
|
|
));
|
|
|
|
|
|
|
|
in {
|
|
|
|
devShells = forAllSystems (pkgs: {
|
|
|
|
default = pkgs.mkShell {
|
|
|
|
packages = with pkgs; [
|
2024-04-14 06:50:41 +00:00
|
|
|
python3
|
|
|
|
python3Packages.cocotb
|
|
|
|
python3Packages.cocotb-bus
|
2024-04-14 06:16:22 +00:00
|
|
|
yosys
|
|
|
|
nextpnr
|
|
|
|
# simulators
|
|
|
|
verilog
|
|
|
|
verilator
|
|
|
|
# support package
|
|
|
|
trellis
|
|
|
|
# loader
|
|
|
|
openfpgaloader
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|