01960837e0
ysyx_22040000 李心杨 Linux calcite 6.6.18 #1-NixOS SMP PREEMPT_DYNAMIC Fri Feb 23 08:25:28 UTC 2024 x86_64 GNU/Linux 23:05:05 up 7:22, 2 users, load average: 0.43, 0.37, 0.33
49 lines
766 B
Nix
49 lines
766 B
Nix
{ pkgs,
|
|
lib,
|
|
stdenv
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nemu";
|
|
version = "2024-03-02";
|
|
|
|
src = ./.;
|
|
|
|
NEMU_HOME = "/build/nemu";
|
|
nativeBuildInputs = with pkgs; [
|
|
gnumake
|
|
flex
|
|
bison
|
|
];
|
|
|
|
buildInputs = with pkgs; [
|
|
check
|
|
readline
|
|
libllvm
|
|
];
|
|
|
|
configurePhase = ''
|
|
echo pwd=$(pwd)
|
|
make alldefconfig
|
|
'';
|
|
|
|
buildPhase = ''
|
|
make
|
|
'';
|
|
|
|
checkPhase = ''
|
|
make test
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
make PREFIX=$out install
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "NJU EMUlator, a full system x86/mips32/riscv32/riscv64 emulator for teaching";
|
|
homepage = "https://github.com/NJU-ProjectN/nemu.git";
|
|
license = with licenses; [ ];
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|