2022-03-30 09:31:56 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
2022-11-21 17:40:18 +00:00
|
|
|
, makeWrapper
|
2022-03-30 09:31:56 +00:00
|
|
|
, alsa-lib
|
|
|
|
, libX11
|
|
|
|
, libevdev
|
|
|
|
, udev
|
|
|
|
, libpulseaudio
|
|
|
|
, SDL2
|
|
|
|
, libzip
|
|
|
|
, miniupnpc
|
2022-11-21 17:40:18 +00:00
|
|
|
, vulkan-loader
|
2022-03-30 09:31:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "flycast";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "2.0";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "flyinghead";
|
|
|
|
repo = "flycast";
|
|
|
|
rev = "v${version}";
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-vSyLg2lAJBV7crKVbGRbi1PUuCwHF9GB/8pjMTlaigA=";
|
2022-03-30 09:31:56 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
2022-11-21 17:40:18 +00:00
|
|
|
makeWrapper
|
2022-03-30 09:31:56 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
alsa-lib
|
|
|
|
libX11
|
|
|
|
libevdev
|
|
|
|
udev
|
|
|
|
libpulseaudio
|
|
|
|
SDL2
|
|
|
|
libzip
|
|
|
|
miniupnpc
|
|
|
|
];
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/flycast --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ vulkan-loader ]}
|
|
|
|
'';
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/flyinghead/flycast";
|
|
|
|
changelog = "https://github.com/flyinghead/flycast/releases/tag/v${version}";
|
|
|
|
description = "A multi-platform Sega Dreamcast, Naomi and Atomiswave emulator";
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.ivar ];
|
|
|
|
};
|
|
|
|
}
|