Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
86 lines
1.7 KiB
Nix
86 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
fetchpatch,
|
|
pkg-config,
|
|
alsa-lib,
|
|
audiofile,
|
|
libjack2,
|
|
liblo,
|
|
liboil,
|
|
libsamplerate,
|
|
libsndfile,
|
|
lilv,
|
|
lv2,
|
|
ncurses,
|
|
readline,
|
|
}:
|
|
|
|
# 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
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ecasound";
|
|
version = "2.9.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://ecasound.seul.org/download/ecasound-${version}.tar.gz";
|
|
sha256 = "1m7njfjdb7sqf0lhgc4swihgdr4snkg8v02wcly08wb5ar2fr2s6";
|
|
};
|
|
|
|
patches = [
|
|
# Pull patch pending upstream inclusion for ncurses-6.3:
|
|
# https://sourceforge.net/p/ecasound/bugs/54/
|
|
(fetchpatch {
|
|
name = "ncursdes-6.3.patch";
|
|
url = "https://sourceforge.net/p/ecasound/bugs/54/attachment/0001-ecasignalview.cpp-always-use-s-style-format-for-prin.patch";
|
|
sha256 = "1x1gsjzd43lh19mhpmwrbq269h56s8bxgyv0yfi5yf0sqjf9vaq0";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
alsa-lib
|
|
audiofile
|
|
libjack2
|
|
liblo
|
|
liboil
|
|
libsamplerate
|
|
libsndfile
|
|
lilv
|
|
lv2
|
|
ncurses
|
|
readline
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
CXXFLAGS = "-std=c++11";
|
|
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
|
|
'';
|
|
|
|
meta = {
|
|
description = "Software package designed for multitrack audio processing";
|
|
license = with lib.licenses; [
|
|
gpl2
|
|
lgpl21
|
|
];
|
|
homepage = "http://nosignal.fi/ecasound/";
|
|
};
|
|
}
|