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
|
2023-02-22 10:55:15 +00:00
|
|
|
, curl
|
|
|
|
, libao
|
2022-03-30 09:31:56 +00:00
|
|
|
, libpulseaudio
|
|
|
|
, libzip
|
2023-11-16 04:20:00 +00:00
|
|
|
, lua
|
2022-03-30 09:31:56 +00:00
|
|
|
, miniupnpc
|
2023-11-16 04:20:00 +00:00
|
|
|
, SDL2
|
2022-11-21 17:40:18 +00:00
|
|
|
, vulkan-loader
|
2022-03-30 09:31:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "flycast";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2.2";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "flyinghead";
|
|
|
|
repo = "flycast";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-eQMKaUaZ1b0oXre4Ouli4qIyNaG64KntyRGk3/YIopc=";
|
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
|
2023-02-22 10:55:15 +00:00
|
|
|
curl
|
|
|
|
libao
|
2022-03-30 09:31:56 +00:00
|
|
|
libpulseaudio
|
|
|
|
libzip
|
2023-11-16 04:20:00 +00:00
|
|
|
lua
|
2022-03-30 09:31:56 +00:00
|
|
|
miniupnpc
|
2023-11-16 04:20:00 +00:00
|
|
|
SDL2
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DUSE_HOST_SDL=ON"
|
2022-03-30 09:31:56 +00:00
|
|
|
];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|