2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-07-22 17:41:46 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, curl
|
2021-06-10 03:57:09 +01:00
|
|
|
, alsa-lib
|
2020-07-22 17:41:46 +01:00
|
|
|
, libGLU
|
|
|
|
, libX11
|
|
|
|
, libevdev
|
|
|
|
, udev
|
|
|
|
, libpulseaudio
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "reicast";
|
|
|
|
version = "20.04";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "reicast";
|
|
|
|
repo = "reicast-emulator";
|
|
|
|
rev = "r${version}";
|
|
|
|
sha256 = "0vz3b1hg1qj6nycnqq5zcpzqpcbxw1c2ffamia5z3x7rapjx5d71";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [
|
|
|
|
curl
|
2021-06-10 03:57:09 +01:00
|
|
|
alsa-lib
|
2020-07-22 17:41:46 +01:00
|
|
|
libGLU
|
|
|
|
libX11
|
|
|
|
libevdev
|
|
|
|
udev
|
|
|
|
libpulseaudio
|
|
|
|
];
|
|
|
|
|
|
|
|
# No rule to make target 'install'
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -D ./reicast $out/bin/reicast
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-07-22 17:41:46 +01:00
|
|
|
homepage = "https://reicast.com/";
|
|
|
|
description = "A multi-platform Sega Dreamcast emulator";
|
|
|
|
license = with licenses; [ bsd3 gpl2Only lgpl2Only ];
|
|
|
|
platforms = ["x86_64-linux" ];
|
|
|
|
maintainers = [ maintainers.ivar ];
|
|
|
|
};
|
|
|
|
}
|