53 lines
940 B
Nix
53 lines
940 B
Nix
|
{ lib
|
||
|
, stdenv
|
||
|
, fetchFromGitHub
|
||
|
, cmake
|
||
|
, pkg-config
|
||
|
, alsa-lib
|
||
|
, libX11
|
||
|
, libevdev
|
||
|
, udev
|
||
|
, libpulseaudio
|
||
|
, SDL2
|
||
|
, libzip
|
||
|
, miniupnpc
|
||
|
}:
|
||
|
|
||
|
stdenv.mkDerivation rec {
|
||
|
pname = "flycast";
|
||
|
version = "1.2";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "flyinghead";
|
||
|
repo = "flycast";
|
||
|
rev = "v${version}";
|
||
|
sha256 = "sha256-MzHAGK++oukIs84OR/l6gBwCJssdi8Iyte5Rtro2+Q0=";
|
||
|
fetchSubmodules = true;
|
||
|
};
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
cmake
|
||
|
pkg-config
|
||
|
];
|
||
|
|
||
|
buildInputs = [
|
||
|
alsa-lib
|
||
|
libX11
|
||
|
libevdev
|
||
|
udev
|
||
|
libpulseaudio
|
||
|
SDL2
|
||
|
libzip
|
||
|
miniupnpc
|
||
|
];
|
||
|
|
||
|
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 ];
|
||
|
};
|
||
|
}
|