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";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2.3.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}";
|
2024-05-15 15:35:15 +00:00
|
|
|
sha256 = "sha256-YFLSUaEikwLPglHh3t8sHiKHRn5cchKzzkJlZDdgVsU=";
|
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}";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Multi-platform Sega Dreamcast, Naomi and Atomiswave emulator";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "flycast";
|
2022-03-30 09:31:56 +00:00
|
|
|
license = licenses.gpl2Only;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.ivar ];
|
|
|
|
};
|
|
|
|
}
|