2021-02-20 03:16:46 +00:00
|
|
|
{ lib, cmake, fetchFromGitHub, libGL, libiconv, libX11, openal, stdenv }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cen64";
|
2023-04-16 09:32:44 +00:00
|
|
|
version = "unstable-2022-10-02";
|
2021-02-20 03:16:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "n64dev";
|
|
|
|
repo = "cen64";
|
2023-04-16 09:32:44 +00:00
|
|
|
rev = "ee6db7d803a77b474e73992fdc25d76b9723d806";
|
|
|
|
sha256 = "sha256-/CraSu/leNA0dl8NVgFjvKdOWrC9/namAz5NSxtPr+I=";
|
2021-02-20 03:16:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ libGL libiconv openal libX11 ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-03-23 16:09:48 +00:00
|
|
|
runHook preInstall
|
|
|
|
install -D {,$out/bin/}${pname}
|
|
|
|
runHook postInstall
|
2021-02-20 03:16:46 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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" ];
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "cen64";
|
2021-02-20 03:16:46 +00:00
|
|
|
};
|
|
|
|
}
|