4860b552d5
ysyx_22040000 李心杨 Linux calcite 6.1.69 #1-NixOS SMP PREEMPT_DYNAMIC Wed Dec 20 16:00:29 UTC 2023 x86_64 GNU/Linux 14:26:46 up 23:05, 2 users, load average: 2.62, 1.66, 1.15
35 lines
775 B
Nix
35 lines
775 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
|
|
gdb
|
|
jq
|
|
bear
|
|
clang-tools
|
|
rnix-lsp
|
|
];
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
SDL2
|
|
SDL2_image
|
|
python3
|
|
];
|
|
|
|
shellHook = ''
|
|
export NEMU_HOME=/home/xin/repo/ysyx-workbench/nemu
|
|
'';
|
|
};
|
|
}
|
|
);
|
|
}
|