nixpkgs/pkgs/applications/audio/soundscape-renderer/default.nix

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

57 lines
1.6 KiB
Nix
Raw Normal View History

2022-03-06 16:04:44 +00:00
{ lib
, stdenv
, fetchFromGitHub
2016-11-03 17:32:29 +00:00
, autoreconfHook
, help2man
, pkg-config
2016-11-03 17:32:29 +00:00
, libsndfile
, fftwFloat
, libjack2
, libxml2
, qt4
, boost
, ecasound
, glibcLocales
2022-03-06 16:04:44 +00:00
, libGLU
, libGL # Needed because help2man basically does a ./ssr-binaural --help and ssr-binaural needs libGL
2016-11-03 17:32:29 +00:00
}:
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
2022-03-06 16:04:44 +00:00
pname = "soundscape-renderer";
version = "unstable-2016-11-03";
2016-11-03 17:32:29 +00:00
2022-03-06 16:04:44 +00:00
src = fetchFromGitHub {
owner = "SoundScapeRenderer";
repo = "ssr";
2016-11-03 17:32:29 +00:00
rev = "0dd0136dd24e47b63d8a4e05de467f5c7b047ec9";
2022-03-06 16:04:44 +00:00
sha256 = "sha256-9s+Elaxz9kX+Nle1CqBU/9r0hdI4dhsJ6GrNqvP5HIs=";
2016-11-03 17:32:29 +00:00
};
# Without it doesn't find all of the boost libraries.
2022-03-06 16:04:44 +00:00
BOOST_LIB_DIR = "${boost}/lib";
# uses the deprecated get_generic_category() in boost_system
2022-03-06 16:04:44 +00:00
NIX_CFLAGS_COMPILE = "-DBOOST_SYSTEM_ENABLE_DEPRECATED=1";
2016-11-03 17:32:29 +00:00
LC_ALL = "en_US.UTF-8";
nativeBuildInputs = [ autoreconfHook pkg-config ];
2019-11-10 16:44:34 +00:00
buildInputs = [ boost boost.dev ecasound libGLU libGL 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/";
2016-11-03 17:32:29 +00:00
description = "The SoundScape Renderer (SSR) is a tool for real-time spatial audio reproduction";
2021-01-15 13:21:58 +00:00
license = lib.licenses.gpl3;
maintainers = [ lib.maintainers.fridh ];
2016-11-03 17:32:29 +00:00
};
}