about summary refs log tree commit diff
path: root/pkgs/applications/emulators/cen64/default.nix
blob: e13adbb71de82328ba9f02622704f9c0d4729898 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib, cmake, fetchFromGitHub, libGL, libiconv, libX11, openal, stdenv }:

stdenv.mkDerivation rec {
  pname = "cen64";
  version = "unstable-2022-10-02";

  src = fetchFromGitHub {
    owner = "n64dev";
    repo = "cen64";
    rev = "ee6db7d803a77b474e73992fdc25d76b9723d806";
    sha256 = "sha256-/CraSu/leNA0dl8NVgFjvKdOWrC9/namAz5NSxtPr+I=";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ libGL libiconv openal libX11 ];

  installPhase = ''
    runHook preInstall
    install -D {,$out/bin/}${pname}
    runHook postInstall
  '';

  meta = with lib; {
    description = "A Cycle-Accurate Nintendo 64 Emulator";
    license = licenses.bsd3;
    homepage = "https://github.com/n64dev/cen64";
    maintainers = [ maintainers._414owen ];
    platforms = [ "x86_64-linux" ];
    mainProgram = "cen64";
  };
}