Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
cmake,
|
|
fetchFromGitHub,
|
|
libGL,
|
|
libiconv,
|
|
libX11,
|
|
openal,
|
|
stdenv,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cen64";
|
|
version = "0-unstable-2023-05-29";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "n64dev";
|
|
repo = "cen64";
|
|
rev = "1c1118462bd9d9b8ceb4c556a647718072477aab";
|
|
sha256 = "sha256-vFk29KESATcEY0eRNbS+mHLD9T1phJiG1fqjOlI19/w=";
|
|
};
|
|
|
|
patches = [
|
|
# fix build with gcc14:
|
|
# https://github.com/n64dev/cen64/pull/191/commits/f13bdf94c00a9da3b152ed9fe20001e240215b96
|
|
./cast-mi_regs-callbacks.patch
|
|
# https://github.com/n64dev/cen64/pull/237
|
|
./fix-thread-arg-type-for-pthread_setname_np.patch
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [
|
|
libGL
|
|
libiconv
|
|
openal
|
|
libX11
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -D {,$out/bin/}${pname}
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Cycle-Accurate Nintendo 64 Emulator";
|
|
license = licenses.bsd3;
|
|
homepage = "https://github.com/n64dev/cen64";
|
|
maintainers = [ maintainers._414owen ];
|
|
platforms = [ "x86_64-linux" ];
|
|
mainProgram = "cen64";
|
|
};
|
|
}
|