1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/packages/exodus.nix

42 lines
1011 B
Nix
Raw Normal View History

2026-01-20 18:02:36 +01:00
{
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;
};
}