nixos/wyoming/{faster-whisper,piper}: drop download directory (#376447)
[NixPkgs.git] / pkgs / by-name / fl / flycast / package.nix
blob9654efa2591d5363cc57c704c3cffba3675e3989
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   fetchpatch2,
6   cmake,
7   pkg-config,
8   makeWrapper,
9   alsa-lib,
10   curl,
11   libao,
12   libpulseaudio,
13   libzip,
14   lua,
15   miniupnpc,
16   SDL2,
17   vulkan-loader,
20 stdenv.mkDerivation rec {
21   pname = "flycast";
22   version = "2.4";
24   src = fetchFromGitHub {
25     owner = "flyinghead";
26     repo = "flycast";
27     rev = "v${version}";
28     hash = "sha256-1Rso7/S95+8KPoKa+3oFPJBWE+YGw4Qqo3Hn+crxNio=";
29     fetchSubmodules = true;
30   };
32   nativeBuildInputs = [
33     cmake
34     pkg-config
35     makeWrapper
36   ];
38   buildInputs = [
39     alsa-lib
40     curl
41     libao
42     libpulseaudio
43     libzip
44     lua
45     miniupnpc
46     SDL2
47   ];
49   cmakeFlags = [
50     "-DUSE_HOST_SDL=ON"
51   ];
53   postFixup = ''
54     wrapProgram $out/bin/flycast --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ vulkan-loader ]}
55   '';
57   meta = with lib; {
58     homepage = "https://github.com/flyinghead/flycast";
59     changelog = "https://github.com/flyinghead/flycast/releases/tag/v${version}";
60     description = "Multi-platform Sega Dreamcast, Naomi and Atomiswave emulator";
61     mainProgram = "flycast";
62     license = licenses.gpl2Only;
63     platforms = platforms.unix;
64     maintainers = [ ];
65   };