3d19904c24
ysyx_22040000 李心杨 Linux calcite 6.1.65 #1-NixOS SMP PREEMPT_DYNAMIC Sun Dec 3 06:32:13 UTC 2023 x86_64 GNU/Linux 10:33:05 up 145 days 17:05, 2 users, load average: 2.35, 1.27, 0.66
28 lines
698 B
Nix
28 lines
698 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
|
|
];
|
|
|
|
shellHook = ''
|
|
export NEMU_HOME=/home/xin/repo/ysyx-workbench/nemu
|
|
export AM_HOME=/home/xin/repo/ysyx-workbench/abstract-machine
|
|
'';
|
|
};
|
|
}
|
|
);
|
|
}
|