2021-01-15 13:21:58 +00:00
|
|
|
{ lib, stdenv
|
2016-11-03 17:31:57 +00:00
|
|
|
, fetchurl
|
2021-01-07 08:13:02 +00:00
|
|
|
, pkg-config
|
2016-11-03 17:31:57 +00:00
|
|
|
, alsaLib
|
|
|
|
, audiofile
|
|
|
|
, libjack2
|
|
|
|
, liblo
|
|
|
|
, liboil
|
|
|
|
, libsamplerate
|
|
|
|
, libsndfile
|
|
|
|
, lilv
|
|
|
|
, lv2
|
2021-01-07 08:13:02 +00:00
|
|
|
, ncurses
|
|
|
|
, readline
|
2016-11-03 17:31:57 +00:00
|
|
|
}:
|
|
|
|
|
2021-01-07 08:13:02 +00:00
|
|
|
# TODO: fix python. See configure log.
|
|
|
|
# fix -Dnullptr=0 cludge below.
|
|
|
|
# The error is
|
|
|
|
# /nix/store/*-lilv-0.24.10/include/lilv-0/lilv/lilvmm.hpp:272:53: error: 'nullptr' was not declared in this scope
|
2016-11-03 17:31:57 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ecasound";
|
2020-01-15 12:25:39 +00:00
|
|
|
version = "2.9.3";
|
2016-11-03 17:31:57 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://ecasound.seul.org/download/ecasound-${version}.tar.gz";
|
2020-01-15 12:25:39 +00:00
|
|
|
sha256 = "1m7njfjdb7sqf0lhgc4swihgdr4snkg8v02wcly08wb5ar2fr2s6";
|
2016-11-03 17:31:57 +00:00
|
|
|
};
|
|
|
|
|
2021-01-07 08:13:02 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
alsaLib
|
|
|
|
audiofile
|
|
|
|
libjack2
|
|
|
|
liblo
|
|
|
|
liboil
|
|
|
|
libsamplerate
|
|
|
|
libsndfile
|
|
|
|
lilv
|
|
|
|
lv2
|
|
|
|
ncurses
|
|
|
|
readline
|
|
|
|
];
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
configureFlags = "--enable-liblilv --with-extra-cppflags=-Dnullptr=0";
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i -e '
|
|
|
|
s@^#include <readline.h>@#include <readline/readline.h>@
|
|
|
|
s@^#include <history.h>@#include <readline/history.h>@
|
|
|
|
' ecasound/eca-curses.cpp
|
|
|
|
'';
|
2016-11-03 17:31:57 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-10-26 04:08:40 +00:00
|
|
|
description = "Software package designed for multitrack audio processing";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = with lib.licenses; [ gpl2 lgpl21 ];
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://nosignal.fi/ecasound/";
|
2016-11-03 17:31:57 +00:00
|
|
|
};
|
|
|
|
}
|