k3s: format with nixfmt-rfc-style
[NixPkgs.git] / pkgs / games / performous / default.nix
blob20a40922544ed51a3611a3bd3891dcfebc37fb16
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , SDL2
5 , aubio
6 , boost
7 , cmake
8 , ffmpeg
9 , fmt
10 , gettext
11 , glew
12 , glibmm
13 , glm
14 , icu
15 , libepoxy
16 , librsvg
17 , libxmlxx
18 , nlohmann_json
19 , pango
20 , pkg-config
21 , portaudio
24 stdenv.mkDerivation rec {
25   pname = "performous";
26   version = "1.3.1";
28   src = fetchFromGitHub {
29     owner = "performous";
30     repo = "performous";
31     rev = "refs/tags/${version}";
32     hash = "sha256-f70IHA8LqIlkMRwJqSmszx3keStSx50nKcEWLGEjc3g=";
33   };
35   cedSrc = fetchFromGitHub {
36     owner = "performous";
37     repo = "compact_enc_det";
38     rev = "9ca1351fe0b1e85992a407b0fc54a63e9b3adc6e";
39     hash = "sha256-ztfeblR4YnB5+lb+rwOQJjogl+C9vtPH9IVnYO7oxec=";
40   };
42   patches = [
43     ./performous-cmake.patch
44     ./performous-fftw.patch
45   ];
47   postPatch = ''
48     mkdir ced-src
49     cp -R ${cedSrc}/* ced-src
51     substituteInPlace data/CMakeLists.txt \
52       --replace "/usr" "$out"
53   '';
55   nativeBuildInputs = [
56     cmake
57     gettext
58     pkg-config
59   ];
61   buildInputs = [
62     SDL2
63     aubio
64     boost
65     ffmpeg
66     fmt
67     glew
68     glibmm
69     glm
70     icu
71     libepoxy
72     librsvg
73     libxmlxx
74     nlohmann_json
75     pango
76     portaudio
77   ];
79   meta = with lib; {
80     description = "Karaoke, band and dancing game";
81     mainProgram = "performous";
82     homepage = "https://performous.org/";
83     license = licenses.gpl2Plus;
84     maintainers = with maintainers; [ wegank ];
85     platforms = platforms.linux;
86   };