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
|
|
|
|
, egl-wayland
|
|
|
|
, libao
|
|
|
|
, libdecor
|
2022-03-30 09:31:56 +00:00
|
|
|
, libevdev
|
2023-02-22 10:55:15 +00:00
|
|
|
, libffi
|
|
|
|
, libGL
|
2022-03-30 09:31:56 +00:00
|
|
|
, libpulseaudio
|
2023-02-22 10:55:15 +00:00
|
|
|
, libX11
|
|
|
|
, libXext
|
|
|
|
, libxkbcommon
|
2022-03-30 09:31:56 +00:00
|
|
|
, libzip
|
2023-02-22 10:55:15 +00:00
|
|
|
, mesa
|
2022-03-30 09:31:56 +00:00
|
|
|
, miniupnpc
|
2023-02-22 10:55:15 +00:00
|
|
|
, udev
|
|
|
|
, vulkan-headers
|
2022-11-21 17:40:18 +00:00
|
|
|
, vulkan-loader
|
2023-02-22 10:55:15 +00:00
|
|
|
, wayland
|
|
|
|
, zlib
|
2022-03-30 09:31:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "flycast";
|
2023-02-22 10:55:15 +00:00
|
|
|
version = "2.1";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "flyinghead";
|
|
|
|
repo = "flycast";
|
2023-02-22 10:55:15 +00:00
|
|
|
rev = "V${version}";
|
|
|
|
sha256 = "sha256-PRInOqg9OpaUVLwSj1lOxDtjpVaYehkRsp0jLrVKPyY=";
|
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
|
|
|
|
egl-wayland
|
|
|
|
libao
|
|
|
|
libdecor
|
2022-03-30 09:31:56 +00:00
|
|
|
libevdev
|
2023-02-22 10:55:15 +00:00
|
|
|
libffi
|
|
|
|
libGL
|
2022-03-30 09:31:56 +00:00
|
|
|
libpulseaudio
|
2023-02-22 10:55:15 +00:00
|
|
|
libX11
|
|
|
|
libXext
|
|
|
|
libxkbcommon
|
2022-03-30 09:31:56 +00:00
|
|
|
libzip
|
2023-02-22 10:55:15 +00:00
|
|
|
mesa # for libgbm
|
2022-03-30 09:31:56 +00:00
|
|
|
miniupnpc
|
2023-02-22 10:55:15 +00:00
|
|
|
udev
|
|
|
|
vulkan-headers
|
|
|
|
wayland
|
|
|
|
zlib
|
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 ];
|
|
|
|
};
|
|
|
|
}
|