2016-11-03 17:32:29 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchgit
|
|
|
|
, autoreconfHook
|
|
|
|
, help2man
|
|
|
|
, pkgconfig
|
|
|
|
, libsndfile
|
|
|
|
, fftwFloat
|
|
|
|
, libjack2
|
|
|
|
, libxml2
|
|
|
|
, qt4
|
|
|
|
, boost
|
|
|
|
, ecasound
|
|
|
|
, glibcLocales
|
2018-02-24 13:12:44 +00:00
|
|
|
, libGLU_combined # Needed because help2man basically does a ./ssr-binaural --help and ssr-binaural needs libGL
|
2016-11-03 17:32:29 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "soundscape-renderer-unstable-${version}";
|
|
|
|
|
|
|
|
version = "2016-11-03";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = https://github.com/SoundScapeRenderer/ssr;
|
|
|
|
rev = "0dd0136dd24e47b63d8a4e05de467f5c7b047ec9";
|
|
|
|
sha256 = "095x2spv9bmg6pi71mpajnghbqj58ziflg16f9854awx0qp9d8x7";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Without it doesn't find all of the boost libraries.
|
|
|
|
BOOST_LIB_DIR="${boost}/lib";
|
2018-03-11 21:48:45 +00:00
|
|
|
# uses the deprecated get_generic_category() in boost_system
|
|
|
|
NIX_CFLAGS_COMPILE="-DBOOST_SYSTEM_ENABLE_DEPRECATED=1";
|
2016-11-03 17:32:29 +00:00
|
|
|
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
2018-02-24 13:12:44 +00:00
|
|
|
buildInputs = [ boost boost.dev ecasound libGLU_combined help2man libsndfile fftwFloat libjack2 libxml2 qt4 glibcLocales ];
|
2016-11-03 17:32:29 +00:00
|
|
|
|
|
|
|
# 1) Fix detecting version. https://github.com/SoundScapeRenderer/ssr/pull/53
|
|
|
|
# 2) Make it find ecasound headers
|
|
|
|
# 3) Fix locale for help2man
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace configure.ac --replace 'git describe ||' 'git describe 2> /dev/null ||';
|
|
|
|
substituteInPlace configure.ac --replace '/{usr,opt}/{,local/}' '${ecasound}/'
|
|
|
|
substituteInPlace man/Makefile.am --replace '--locale=en' '--locale=en_US.UTF-8'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://spatialaudio.net/ssr/;
|
|
|
|
description = "The SoundScape Renderer (SSR) is a tool for real-time spatial audio reproduction";
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2017-12-05 22:20:11 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.fridh ];
|
2016-11-03 17:32:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|