1
0
mirror of https://github.com/kmein/niveum synced 2026-03-17 18:41:09 +01:00
This commit is contained in:
2026-01-20 18:02:36 +01:00
parent 25f1a2ac1e
commit 09b28ce523
2 changed files with 43 additions and 0 deletions

41
packages/exodus.nix Normal file
View File

@@ -0,0 +1,41 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
SDL2,
makeWrapper,
}:
stdenv.mkDerivation {
pname = "exodus";
version = "unstable-2025-03-31";
src = fetchFromGitHub {
owner = "nrootconauto";
repo = "EXODUS";
rev = "6d806dd5ae5507858c03c4d13be1f3d37a06fa4b";
hash = "sha256-EmIoJj5IjLy0dvuBQR46Oi/xgkbqv/IT+cJa59/aaWI=";
};
nativeBuildInputs = [
cmake
makeWrapper
];
buildInputs = [ SDL2 ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp -a ../exodus $out/bin
runHook postInstall
'';
# tell the EXODUS program where the TempleOS root and bootstrap is
postFixup = ''
wrapProgram $out/bin/exodus \
--add-flags "--root=$src/T --hcrtfile=$src/HCRT_BOOTSTRAP.BIN"
'';
meta = {
description = "Run templeOS emulator in userspace";
homepage = "https://github.com/nrootconauto/EXODUS";
license = lib.licenses.zlib;
maintainers = with lib.maintainers; [ matthewcroughan ];
platforms = lib.platforms.unix;
};
}