4821733dbc
ysyx_22040000 李心杨 Linux calcite 6.1.65 #1-NixOS SMP PREEMPT_DYNAMIC Sun Dec 3 06:32:13 UTC 2023 x86_64 GNU/Linux 21:49:04 up 0:47, 2 users, load average: 0.20, 0.35, 0.48
32 lines
773 B
Nix
32 lines
773 B
Nix
{
|
|
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
|
|
libllvm
|
|
|
|
# TODO: Pin 5.008?
|
|
verilator
|
|
gtkwave
|
|
];
|
|
|
|
shellHook = ''
|
|
export NEMU_HOME=/home/xin/repo/ysyx-workbench/nemu
|
|
export AM_HOME=/home/xin/repo/ysyx-workbench/abstract-machine
|
|
'';
|
|
};
|
|
}
|
|
);
|
|
}
|