> compile NEMU

ysyx_22040000 李心杨
Linux calcite 6.6.19 #1-NixOS SMP PREEMPT_DYNAMIC Fri Mar  1 12:35:11 UTC 2024 x86_64 GNU/Linux
 01:03:00  up  10:38,  2 users,  load average: 0.20, 0.16, 0.66
This commit is contained in:
tracer-ysyx 2024-03-26 01:03:00 +08:00 committed by xinyangli
parent 31ad681337
commit 20030dc8d5
382 changed files with 55 additions and 44376 deletions

View file

@ -0,0 +1,26 @@
{ stdenv,
lib,
cmake,
SDL2,
isa ? "native",
platform ? "NEMU"
}:
stdenv.mkDerivation {
pname = "abstract-machine";
version = "2024.02.18";
src = ./.;
cmakeFlags = [
(lib.cmakeFeature "ISA" isa)
(lib.cmakeBool "__PLATFORM_${lib.strings.toUpper platform}__" true)
];
nativeBuildInputs = [
cmake
];
buildInputs = [
] ++ (if platform=="native" then [ SDL2 ] else [ ]);
}

View file

@ -1 +0,0 @@
/nix/store/h1glxbcjgw3mv218w2wy73yih6s5p7iz-gdb-13.2