Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / games / performous / default.nix
blobc82e1d02afc752d0a9c3bc14e7cbeb9707b7c70a
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.0";
28   src = fetchFromGitHub {
29     owner = "performous";
30     repo = "performous";
31     rev = "refs/tags/${version}";
32     hash = "sha256-y7kxLht15vULN9NxM0wzj9+7Uq4/3D5j9oBEnrTIwQ8=";
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     homepage = "https://performous.org/";
82     license = licenses.gpl2Plus;
83     maintainers = with maintainers; [ wegank ];
84     platforms = platforms.linux;
85   };