2020-04-06 03:28:15 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchgit
|
|
|
|
, alsaLib
|
|
|
|
, aubio
|
|
|
|
, boost
|
|
|
|
, cairomm
|
2020-05-30 19:17:08 +01:00
|
|
|
, cppunit
|
2020-04-06 03:28:15 +01:00
|
|
|
, curl
|
2020-05-30 19:17:08 +01:00
|
|
|
, dbus
|
2020-04-06 03:28:15 +01:00
|
|
|
, doxygen
|
2020-06-07 13:39:09 +01:00
|
|
|
, ffmpeg_3
|
2020-05-30 19:17:08 +01:00
|
|
|
, fftw
|
2020-04-06 03:28:15 +01:00
|
|
|
, fftwSinglePrec
|
|
|
|
, flac
|
2020-05-30 19:17:08 +01:00
|
|
|
, fluidsynth
|
2020-04-06 03:28:15 +01:00
|
|
|
, glibc
|
|
|
|
, glibmm
|
|
|
|
, graphviz
|
|
|
|
, gtkmm2
|
2020-05-30 19:17:08 +01:00
|
|
|
, hidapi
|
|
|
|
, itstool
|
|
|
|
, libarchive
|
2020-04-06 03:28:15 +01:00
|
|
|
, libjack2
|
|
|
|
, liblo
|
2020-05-30 19:17:08 +01:00
|
|
|
, libltc
|
2020-04-06 03:28:15 +01:00
|
|
|
, libogg
|
2020-05-30 19:17:08 +01:00
|
|
|
, libpulseaudio
|
|
|
|
, librdf_raptor
|
|
|
|
, librdf_rasqal
|
2020-04-06 03:28:15 +01:00
|
|
|
, libsamplerate
|
|
|
|
, libsigcxx
|
|
|
|
, libsndfile
|
2020-04-06 13:00:54 +01:00
|
|
|
, libusb1
|
2020-05-30 19:17:08 +01:00
|
|
|
, libuv
|
|
|
|
, libwebsockets
|
2020-04-06 03:28:15 +01:00
|
|
|
, libxml2
|
2020-05-30 19:17:08 +01:00
|
|
|
, libxslt
|
2020-04-06 03:28:15 +01:00
|
|
|
, lilv
|
|
|
|
, lrdf
|
|
|
|
, lv2
|
2020-05-30 19:17:08 +01:00
|
|
|
, pango
|
2020-04-06 03:28:15 +01:00
|
|
|
, perl
|
2020-04-06 13:00:54 +01:00
|
|
|
, pkg-config
|
2020-05-30 19:17:08 +01:00
|
|
|
, python3
|
|
|
|
, qm-dsp
|
|
|
|
, readline
|
2020-04-06 03:28:15 +01:00
|
|
|
, rubberband
|
|
|
|
, serd
|
|
|
|
, sord
|
|
|
|
, sratom
|
2020-05-30 19:17:08 +01:00
|
|
|
, suil
|
2020-04-06 03:28:15 +01:00
|
|
|
, taglib
|
|
|
|
, vamp-plugin-sdk
|
|
|
|
, wafHook
|
|
|
|
}:
|
2020-05-30 19:17:08 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ardour";
|
2020-08-01 12:09:49 +01:00
|
|
|
version = "6.2";
|
2009-09-21 10:58:41 +01:00
|
|
|
|
2020-05-30 19:17:08 +01:00
|
|
|
# don't fetch releases from the GitHub mirror, they are broken
|
2016-10-04 19:15:18 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.ardour.org/ardour/ardour.git";
|
2020-05-30 19:17:08 +01:00
|
|
|
rev = version;
|
2020-08-01 12:09:49 +01:00
|
|
|
sha256 = "17jxbqavricy01x4ymq6d302djsqfnv84m7dm4fd8cpka0dqjp1y";
|
2009-09-21 16:55:24 +01:00
|
|
|
};
|
2009-09-21 10:58:41 +01:00
|
|
|
|
2020-05-30 19:17:08 +01:00
|
|
|
patches = [
|
|
|
|
# AS=as in the environment causes build failure https://tracker.ardour.org/view.php?id=8096
|
|
|
|
./as-flags.patch
|
|
|
|
];
|
|
|
|
|
2020-04-06 03:28:15 +01:00
|
|
|
nativeBuildInputs = [
|
2020-04-06 13:00:54 +01:00
|
|
|
doxygen
|
|
|
|
graphviz # for dot
|
2020-05-30 19:17:08 +01:00
|
|
|
itstool
|
2020-04-06 13:00:54 +01:00
|
|
|
perl
|
2020-05-30 19:17:08 +01:00
|
|
|
pkg-config
|
|
|
|
python3
|
|
|
|
wafHook
|
2020-04-06 03:28:15 +01:00
|
|
|
];
|
2012-03-16 22:28:21 +00:00
|
|
|
|
2020-04-06 03:28:15 +01:00
|
|
|
buildInputs = [
|
|
|
|
alsaLib
|
|
|
|
aubio
|
|
|
|
boost
|
|
|
|
cairomm
|
2020-05-30 19:17:08 +01:00
|
|
|
cppunit
|
2020-04-06 03:28:15 +01:00
|
|
|
curl
|
|
|
|
dbus
|
2020-06-07 13:39:09 +01:00
|
|
|
ffmpeg_3
|
2020-04-06 03:28:15 +01:00
|
|
|
fftw
|
|
|
|
fftwSinglePrec
|
|
|
|
flac
|
2020-05-30 19:17:08 +01:00
|
|
|
fluidsynth
|
2020-04-06 03:28:15 +01:00
|
|
|
glibmm
|
|
|
|
gtkmm2
|
2020-05-30 19:17:08 +01:00
|
|
|
hidapi
|
|
|
|
itstool
|
|
|
|
libarchive
|
2020-04-06 03:28:15 +01:00
|
|
|
libjack2
|
|
|
|
liblo
|
2020-05-30 19:17:08 +01:00
|
|
|
libltc
|
2020-04-06 03:28:15 +01:00
|
|
|
libogg
|
2020-05-30 19:17:08 +01:00
|
|
|
libpulseaudio
|
|
|
|
librdf_raptor
|
|
|
|
librdf_rasqal
|
2020-04-06 03:28:15 +01:00
|
|
|
libsamplerate
|
|
|
|
libsigcxx
|
|
|
|
libsndfile
|
2020-04-06 13:00:54 +01:00
|
|
|
libusb1
|
2020-05-30 19:17:08 +01:00
|
|
|
libuv
|
|
|
|
libwebsockets
|
2020-04-06 03:28:15 +01:00
|
|
|
libxml2
|
2020-05-30 19:17:08 +01:00
|
|
|
libxslt
|
2020-04-06 03:28:15 +01:00
|
|
|
lilv
|
|
|
|
lrdf
|
|
|
|
lv2
|
|
|
|
pango
|
2020-05-30 19:17:08 +01:00
|
|
|
perl
|
|
|
|
python3
|
|
|
|
qm-dsp
|
|
|
|
readline
|
2020-04-06 03:28:15 +01:00
|
|
|
rubberband
|
|
|
|
serd
|
|
|
|
sord
|
|
|
|
sratom
|
|
|
|
suil
|
|
|
|
taglib
|
|
|
|
vamp-plugin-sdk
|
|
|
|
];
|
2013-03-02 20:17:30 +00:00
|
|
|
|
2019-04-10 04:44:37 +01:00
|
|
|
wafConfigureFlags = [
|
2020-05-30 19:17:08 +01:00
|
|
|
"--cxx11"
|
2018-11-11 21:20:41 +00:00
|
|
|
"--docs"
|
2020-04-06 13:00:54 +01:00
|
|
|
"--freedesktop"
|
2020-05-30 19:17:08 +01:00
|
|
|
"--no-phone-home"
|
|
|
|
"--optimize"
|
|
|
|
"--ptformat"
|
|
|
|
"--qm-dsp-include=${qm-dsp}/include/qm-dsp"
|
|
|
|
"--run-tests"
|
|
|
|
"--test"
|
|
|
|
"--use-external-libs"
|
2018-11-11 21:20:41 +00:00
|
|
|
];
|
2014-07-29 17:27:38 +01:00
|
|
|
|
2020-05-30 19:17:08 +01:00
|
|
|
# Ardour's wscript requires git revision and date to be available.
|
|
|
|
# Since they are not, let's generate the file manually.
|
2020-04-06 13:00:54 +01:00
|
|
|
postPatch = ''
|
2020-05-30 19:17:08 +01:00
|
|
|
printf '#include "libs/ardour/ardour/revision.h"\nnamespace ARDOUR { const char* revision = "${version}"; const char* date = ""; }\n' > libs/ardour/revision.cc
|
|
|
|
sed 's|/usr/include/libintl.h|${glibc.dev}/include/libintl.h|' -i wscript
|
2015-05-28 02:02:01 +01:00
|
|
|
patchShebangs ./tools/
|
2020-05-30 19:17:08 +01:00
|
|
|
substituteInPlace libs/ardour/video_tools_paths.cc \
|
2020-06-07 13:39:09 +01:00
|
|
|
--replace 'ffmpeg_exe = X_("");' 'ffmpeg_exe = X_("${ffmpeg_3}/bin/ffmpeg");' \
|
|
|
|
--replace 'ffprobe_exe = X_("");' 'ffprobe_exe = X_("${ffmpeg_3}/bin/ffprobe");'
|
2009-09-21 10:58:41 +01:00
|
|
|
'';
|
2013-03-02 20:17:30 +00:00
|
|
|
|
2018-11-11 21:20:41 +00:00
|
|
|
postInstall = ''
|
2020-04-06 13:00:54 +01:00
|
|
|
# wscript does not install these for some reason
|
|
|
|
install -vDm 644 "build/gtk2_ardour/ardour.xml" \
|
|
|
|
-t "$out/share/mime/packages"
|
2020-05-30 19:17:08 +01:00
|
|
|
install -vDm 644 "build/gtk2_ardour/ardour6.desktop" \
|
2020-04-06 13:00:54 +01:00
|
|
|
-t "$out/share/applications"
|
|
|
|
for size in 16 22 32 48 256 512; do
|
|
|
|
install -vDm 644 "gtk2_ardour/resources/Ardour-icon_''${size}px.png" \
|
2020-05-30 19:17:08 +01:00
|
|
|
"$out/share/icons/hicolor/''${size}x''${size}/apps/ardour6.png"
|
2020-04-06 13:00:54 +01:00
|
|
|
done
|
|
|
|
install -vDm 644 "ardour.1"* -t "$out/share/man/man1"
|
2014-03-16 10:32:56 +00:00
|
|
|
'';
|
2009-09-21 10:58:41 +01:00
|
|
|
|
2020-05-30 19:17:08 +01:00
|
|
|
LINKFLAGS = "-lpthread";
|
|
|
|
|
2014-03-16 10:32:56 +00:00
|
|
|
meta = with stdenv.lib; {
|
2010-02-11 14:31:49 +00:00
|
|
|
description = "Multi-track hard disk recording software";
|
2009-09-21 10:58:41 +01:00
|
|
|
longDescription = ''
|
2015-05-03 19:25:57 +01:00
|
|
|
Ardour is a digital audio workstation (DAW), You can use it to
|
|
|
|
record, edit and mix multi-track audio and midi. Produce your
|
|
|
|
own CDs. Mix video soundtracks. Experiment with new ideas about
|
|
|
|
music and sound.
|
|
|
|
|
|
|
|
Please consider supporting the ardour project financially:
|
2020-05-30 19:17:08 +01:00
|
|
|
https://community.ardour.org/donate
|
2009-09-21 10:58:41 +01:00
|
|
|
'';
|
2020-05-30 19:17:08 +01:00
|
|
|
homepage = "https://ardour.org/";
|
2014-03-16 10:32:56 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2020-05-30 19:17:08 +01:00
|
|
|
maintainers = with maintainers; [ goibhniu magnetophon ];
|
2009-09-21 10:58:41 +01:00
|
|
|
};
|
|
|
|
}
|