2022-06-10 04:10:47 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, SDL2
|
2023-01-16 20:51:47 +01:00
|
|
|
, aubio
|
2022-06-10 04:10:47 +02:00
|
|
|
, boost
|
|
|
|
, cmake
|
2023-09-11 02:26:14 +02:00
|
|
|
, ffmpeg
|
|
|
|
, fmt
|
2022-06-10 04:10:47 +02:00
|
|
|
, gettext
|
|
|
|
, glew
|
|
|
|
, glibmm
|
2023-01-16 20:51:47 +01:00
|
|
|
, glm
|
|
|
|
, icu
|
2022-06-10 04:10:47 +02:00
|
|
|
, libepoxy
|
|
|
|
, librsvg
|
|
|
|
, libxmlxx
|
2023-09-11 02:26:14 +02:00
|
|
|
, nlohmann_json
|
2022-06-10 04:10:47 +02:00
|
|
|
, pango
|
|
|
|
, pkg-config
|
|
|
|
, portaudio
|
2014-11-25 14:39:46 +01:00
|
|
|
}:
|
|
|
|
|
2016-08-21 08:56:11 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "performous";
|
2024-02-19 10:04:14 +01:00
|
|
|
version = "1.3.1";
|
2014-11-25 14:39:46 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-09-11 02:26:14 +02:00
|
|
|
owner = "performous";
|
|
|
|
repo = "performous";
|
2023-01-16 20:51:47 +01:00
|
|
|
rev = "refs/tags/${version}";
|
2024-02-19 10:04:14 +01:00
|
|
|
hash = "sha256-f70IHA8LqIlkMRwJqSmszx3keStSx50nKcEWLGEjc3g=";
|
2014-11-25 14:39:46 +01:00
|
|
|
};
|
|
|
|
|
2023-01-16 20:51:47 +01:00
|
|
|
cedSrc = fetchFromGitHub {
|
2023-09-11 02:26:14 +02:00
|
|
|
owner = "performous";
|
2023-01-16 20:51:47 +01:00
|
|
|
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
|
2023-09-11 02:26:14 +02:00
|
|
|
|
|
|
|
substituteInPlace data/CMakeLists.txt \
|
|
|
|
--replace "/usr" "$out"
|
2023-01-16 20:51:47 +01:00
|
|
|
'';
|
2020-03-25 18:36:13 +01:00
|
|
|
|
2022-06-10 04:10:47 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
gettext
|
|
|
|
pkg-config
|
|
|
|
];
|
2014-11-25 14:39:46 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
2022-06-10 04:10:47 +02:00
|
|
|
SDL2
|
2023-01-16 20:51:47 +01:00
|
|
|
aubio
|
2022-06-10 04:10:47 +02:00
|
|
|
boost
|
2023-09-11 02:26:14 +02:00
|
|
|
ffmpeg
|
|
|
|
fmt
|
2022-06-10 04:10:47 +02:00
|
|
|
glew
|
|
|
|
glibmm
|
2023-01-16 20:51:47 +01:00
|
|
|
glm
|
|
|
|
icu
|
2022-06-10 04:10:47 +02:00
|
|
|
libepoxy
|
|
|
|
librsvg
|
|
|
|
libxmlxx
|
2023-09-11 02:26:14 +02:00
|
|
|
nlohmann_json
|
2022-06-10 04:10:47 +02:00
|
|
|
pango
|
|
|
|
portaudio
|
2014-11-25 14:39:46 +01:00
|
|
|
];
|
2022-06-10 04:10:47 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Karaoke, band and dancing game";
|
2023-01-16 20:51:47 +01:00
|
|
|
homepage = "https://performous.org/";
|
2022-06-10 04:10:47 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2023-01-16 20:51:47 +01:00
|
|
|
maintainers = with maintainers; [ wegank ];
|
2022-06-10 04:10:47 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2014-11-25 14:39:46 +01:00
|
|
|
}
|