nixpkgs/pkgs/games/performous/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

87 lines
1.4 KiB
Nix
Raw Normal View History

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
2023-09-11 00:26:14 +00:00
, ffmpeg
, fmt
2022-06-10 02:10:47 +00:00
, gettext
, glew
, glibmm
2023-01-16 19:51:47 +00:00
, glm
, icu
2022-06-10 02:10:47 +00:00
, libepoxy
, librsvg
, libxmlxx
2023-09-11 00:26:14 +00:00
, nlohmann_json
2022-06-10 02:10:47 +00:00
, pango
, pkg-config
, portaudio
2014-11-25 13:39:46 +00:00
}:
2016-08-21 06:56:11 +00:00
stdenv.mkDerivation rec {
pname = "performous";
2023-09-11 00:26:14 +00:00
version = "1.3.0";
2014-11-25 13:39:46 +00:00
src = fetchFromGitHub {
2023-09-11 00:26:14 +00:00
owner = "performous";
repo = "performous";
2023-01-16 19:51:47 +00:00
rev = "refs/tags/${version}";
2023-09-11 00:26:14 +00:00
hash = "sha256-y7kxLht15vULN9NxM0wzj9+7Uq4/3D5j9oBEnrTIwQ8=";
2014-11-25 13:39:46 +00:00
};
2023-01-16 19:51:47 +00:00
cedSrc = fetchFromGitHub {
2023-09-11 00:26:14 +00:00
owner = "performous";
2023-01-16 19:51:47 +00: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 00:26:14 +00:00
substituteInPlace data/CMakeLists.txt \
--replace "/usr" "$out"
2023-01-16 19:51:47 +00:00
'';
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
2023-09-11 00:26:14 +00:00
ffmpeg
fmt
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
2023-09-11 00:26:14 +00:00
nlohmann_json
2022-06-10 02:10:47 +00:00
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
}