2023-12-20 16:31:43 +00:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
|
2023-12-23 09:27:29 +00:00
|
|
|
outputs = { self, ... }@inputs: with inputs;
|
2023-12-20 16:31:43 +00:00
|
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let pkgs = nixpkgs.legacyPackages.${system}; in
|
|
|
|
{
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
packages = with pkgs; [
|
2023-12-23 09:27:29 +00:00
|
|
|
verilator
|
2023-12-22 13:49:04 +00:00
|
|
|
gtkwave
|
2023-12-23 09:27:29 +00:00
|
|
|
gcc
|
|
|
|
bear
|
2023-12-20 16:31:43 +00:00
|
|
|
];
|
|
|
|
shellHook = ''
|
|
|
|
export NEMU_HOME=/home/xin/repo/ysyx-workbench/nemu
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|