2022-06-10 02:10:47 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, SDL2
|
2023-01-16 19:51:47 +00:00
|
|
|
, aubio
|
2022-06-10 02:10:47 +00:00
|
|
|
, boost
|
|
|
|
, cmake
|
|
|
|
, ffmpeg
|
|
|
|
, gettext
|
2023-01-16 19:51:47 +00:00
|
|
|
, git
|
2022-06-10 02:10:47 +00:00
|
|
|
, glew
|
|
|
|
, glibmm
|
2023-01-16 19:51:47 +00:00
|
|
|
, glm
|
|
|
|
, icu
|
2022-06-10 02:10:47 +00:00
|
|
|
, libepoxy
|
|
|
|
, librsvg
|
|
|
|
, libxmlxx
|
|
|
|
, pango
|
|
|
|
, pkg-config
|
|
|
|
, portaudio
|
2014-11-25 13:39:46 +00:00
|
|
|
}:
|
|
|
|
|
2016-08-21 06:56:11 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "performous";
|
2023-01-16 19:51:47 +00:00
|
|
|
version = "1.2.0";
|
2014-11-25 13:39:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-01-16 19:51:47 +00:00
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-ueTSirov/lj4/IzaMqHitbOqx8qqUpsTghcb9DUnNEg=";
|
2014-11-25 13:39:46 +00:00
|
|
|
};
|
|
|
|
|
2023-01-16 19:51:47 +00:00
|
|
|
cedSrc = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = "compact_enc_det";
|
|
|
|
rev = "9ca1351fe0b1e85992a407b0fc54a63e9b3adc6e";
|
|
|
|
hash = "sha256-ztfeblR4YnB5+lb+rwOQJjogl+C9vtPH9IVnYO7oxec=";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./performous-cmake.patch
|
|
|
|
./performous-fftw.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
mkdir ced-src
|
|
|
|
cp -R ${cedSrc}/* ced-src
|
|
|
|
'';
|
2020-03-25 17:36:13 +00:00
|
|
|
|
2022-06-10 02:10:47 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
gettext
|
|
|
|
pkg-config
|
|
|
|
];
|
2014-11-25 13:39:46 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2022-06-10 02:10:47 +00:00
|
|
|
SDL2
|
2023-01-16 19:51:47 +00:00
|
|
|
aubio
|
2022-06-10 02:10:47 +00:00
|
|
|
boost
|
|
|
|
ffmpeg
|
|
|
|
glew
|
|
|
|
glibmm
|
2023-01-16 19:51:47 +00:00
|
|
|
glm
|
|
|
|
icu
|
2022-06-10 02:10:47 +00:00
|
|
|
libepoxy
|
|
|
|
librsvg
|
|
|
|
libxmlxx
|
|
|
|
pango
|
|
|
|
portaudio
|
2014-11-25 13:39:46 +00:00
|
|
|
];
|
2022-06-10 02:10:47 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Karaoke, band and dancing game";
|
2023-01-16 19:51:47 +00:00
|
|
|
homepage = "https://performous.org/";
|
2022-06-10 02:10:47 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2023-01-16 19:51:47 +00:00
|
|
|
maintainers = with maintainers; [ wegank ];
|
2022-06-10 02:10:47 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2014-11-25 13:39:46 +00:00
|
|
|
}
|