2021-01-17 00:15:33 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
2021-01-09 10:05:03 +00:00
|
|
|
, pkg-config
|
2021-06-28 23:13:55 +00:00
|
|
|
, alsa-lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, audiofile
|
|
|
|
, libjack2
|
|
|
|
, liblo
|
|
|
|
, liboil
|
|
|
|
, libsamplerate
|
|
|
|
, libsndfile
|
|
|
|
, lilv
|
|
|
|
, lv2
|
2021-01-09 10:05:03 +00:00
|
|
|
, ncurses
|
|
|
|
, readline
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2021-01-09 10:05:03 +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
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ecasound";
|
|
|
|
version = "2.9.3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://ecasound.seul.org/download/ecasound-${version}.tar.gz";
|
|
|
|
sha256 = "1m7njfjdb7sqf0lhgc4swihgdr4snkg8v02wcly08wb5ar2fr2s6";
|
|
|
|
};
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
alsa-lib
|
2021-01-09 10:05:03 +00:00
|
|
|
audiofile
|
|
|
|
libjack2
|
|
|
|
liblo
|
|
|
|
liboil
|
|
|
|
libsamplerate
|
|
|
|
libsndfile
|
|
|
|
lilv
|
|
|
|
lv2
|
|
|
|
ncurses
|
|
|
|
readline
|
|
|
|
];
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
CXXFLAGS = "-std=c++11";
|
2021-01-09 10:05:03 +00:00
|
|
|
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
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-11-03 02:18:15 +00:00
|
|
|
description = "Software package designed for multitrack audio processing";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = with lib.licenses; [ gpl2 lgpl21 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://nosignal.fi/ecasound/";
|
|
|
|
};
|
|
|
|
}
|