nixpkgs/pkgs/applications/emulators/flycast/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

82 lines
1.3 KiB
Nix
Raw Normal View History

2022-03-07 20:33:13 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, makeWrapper
2022-03-07 20:33:13 +00:00
, alsa-lib
2023-02-16 18:29:50 +00:00
, curl
, egl-wayland
, libao
, libdecor
2022-03-07 20:33:13 +00:00
, libevdev
2023-02-16 18:29:50 +00:00
, libffi
, libGL
2022-03-07 20:33:13 +00:00
, libpulseaudio
2023-02-16 18:29:50 +00:00
, libX11
, libXext
, libxkbcommon
2022-03-07 20:33:13 +00:00
, libzip
2023-02-16 18:29:50 +00:00
, mesa
2022-03-07 20:33:13 +00:00
, miniupnpc
2023-02-16 18:29:50 +00:00
, udev
, vulkan-headers
, vulkan-loader
2023-02-16 18:29:50 +00:00
, wayland
, zlib
2022-03-07 20:33:13 +00:00
}:
stdenv.mkDerivation rec {
pname = "flycast";
2023-02-16 18:29:50 +00:00
version = "2.1";
2022-03-07 20:33:13 +00:00
src = fetchFromGitHub {
owner = "flyinghead";
repo = "flycast";
2023-02-16 18:29:50 +00:00
rev = "V${version}";
sha256 = "sha256-PRInOqg9OpaUVLwSj1lOxDtjpVaYehkRsp0jLrVKPyY=";
2022-03-07 20:33:13 +00:00
fetchSubmodules = true;
};
nativeBuildInputs = [
cmake
pkg-config
makeWrapper
2022-03-07 20:33:13 +00:00
];
buildInputs = [
alsa-lib
2023-02-16 18:29:50 +00:00
curl
egl-wayland
libao
libdecor
2022-03-07 20:33:13 +00:00
libevdev
2023-02-16 18:29:50 +00:00
libffi
libGL
2022-03-07 20:33:13 +00:00
libpulseaudio
2023-02-16 18:29:50 +00:00
libX11
libXext
libxkbcommon
2022-03-07 20:33:13 +00:00
libzip
2023-02-16 18:29:50 +00:00
mesa # for libgbm
2022-03-07 20:33:13 +00:00
miniupnpc
2023-02-16 18:29:50 +00:00
udev
vulkan-headers
wayland
zlib
2022-03-07 20:33:13 +00:00
];
postFixup = ''
wrapProgram $out/bin/flycast --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ vulkan-loader ]}
'';
2022-03-07 20:33:13 +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 ];
};
}