mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
87 lines
1.4 KiB
Nix
87 lines
1.4 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, SDL2
|
|
, aubio
|
|
, boost
|
|
, cmake
|
|
, ffmpeg
|
|
, fmt
|
|
, gettext
|
|
, glew
|
|
, glibmm
|
|
, glm
|
|
, icu
|
|
, libepoxy
|
|
, librsvg
|
|
, libxmlxx
|
|
, nlohmann_json
|
|
, pango
|
|
, pkg-config
|
|
, portaudio
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "performous";
|
|
version = "1.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "performous";
|
|
repo = "performous";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-f70IHA8LqIlkMRwJqSmszx3keStSx50nKcEWLGEjc3g=";
|
|
};
|
|
|
|
cedSrc = fetchFromGitHub {
|
|
owner = "performous";
|
|
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
|
|
|
|
substituteInPlace data/CMakeLists.txt \
|
|
--replace "/usr" "$out"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
gettext
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
SDL2
|
|
aubio
|
|
boost
|
|
ffmpeg
|
|
fmt
|
|
glew
|
|
glibmm
|
|
glm
|
|
icu
|
|
libepoxy
|
|
librsvg
|
|
libxmlxx
|
|
nlohmann_json
|
|
pango
|
|
portaudio
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Karaoke, band and dancing game";
|
|
mainProgram = "performous";
|
|
homepage = "https://performous.org/";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ wegank ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|