ysyx-workbench/npc/flake.nix
tracer-ysyx d278cae607 > sim RTL
ysyx_22040000 李心杨
Linux calcite 6.1.69 #1-NixOS SMP PREEMPT_DYNAMIC Wed Dec 20 16:00:29 UTC 2023 x86_64 GNU/Linux
 11:09:46  up  19:48,  2 users,  load average: 0.84, 0.64, 0.85
2024-01-01 11:09:46 +08:00

31 lines
704 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; [
verilator
gtkwave
gcc
bear
clang-tools
rnix-lsp
];
nativeBuildInputs = with pkgs; [
python3
];
shellHook = ''
export NEMU_HOME=/home/xin/repo/ysyx-workbench/nemu
'';
};
}
);
}