2023-12-20 16:31:43 +00:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, ... }@inputs: with inputs;
|
|
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let pkgs = nixpkgs.legacyPackages.${system}; in
|
|
|
|
{
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
packages = with pkgs; [
|
|
|
|
gnumake
|
|
|
|
bison
|
|
|
|
flex
|
|
|
|
ncurses
|
|
|
|
readline
|
2023-12-21 02:33:05 +00:00
|
|
|
libllvm
|
2023-12-22 13:49:04 +00:00
|
|
|
|
|
|
|
# TODO: Pin 5.008?
|
|
|
|
verilator
|
|
|
|
gtkwave
|
2023-12-20 16:31:43 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
shellHook = ''
|
|
|
|
export NEMU_HOME=/home/xin/repo/ysyx-workbench/nemu
|
|
|
|
export AM_HOME=/home/xin/repo/ysyx-workbench/abstract-machine
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|