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

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

65 lines
1.1 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
, libao
2022-03-07 20:33:13 +00:00
, libpulseaudio
, libzip
2023-10-30 10:13:45 +00:00
, lua
2022-03-07 20:33:13 +00:00
, miniupnpc
2023-10-30 10:13:45 +00:00
, SDL2
, vulkan-loader
2022-03-07 20:33:13 +00:00
}:
stdenv.mkDerivation rec {
pname = "flycast";
2024-03-17 00:21:46 +00:00
version = "2.3";
2022-03-07 20:33:13 +00:00
src = fetchFromGitHub {
owner = "flyinghead";
repo = "flycast";
2023-10-30 10:13:45 +00:00
rev = "v${version}";
2024-03-17 00:21:46 +00:00
sha256 = "sha256-o1Xnyts2+A3ZkzVN0o8E5nGPo2c2vYltMlHF4LZMppU=";
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
libao
2022-03-07 20:33:13 +00:00
libpulseaudio
libzip
2023-10-30 10:13:45 +00:00
lua
2022-03-07 20:33:13 +00:00
miniupnpc
2023-10-30 10:13:45 +00:00
SDL2
];
cmakeFlags = [
"-DUSE_HOST_SDL=ON"
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";
mainProgram = "flycast";
2022-03-07 20:33:13 +00:00
license = licenses.gpl2Only;
platforms = platforms.unix;
maintainers = [ maintainers.ivar ];
};
}