From 5890b707b2df0ebdf6c067f89d809b7f1631da0d Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Thu, 26 Oct 2023 14:39:10 -0600 Subject: [PATCH 1/2] ardour: 8.0 -> 8.1 --- pkgs/applications/audio/ardour/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/audio/ardour/default.nix b/pkgs/applications/audio/ardour/default.nix index a0ca97a580ff..51b6b44ebf25 100644 --- a/pkgs/applications/audio/ardour/default.nix +++ b/pkgs/applications/audio/ardour/default.nix @@ -59,14 +59,14 @@ }: stdenv.mkDerivation rec { pname = "ardour"; - version = "8.0"; + version = "8.1"; # We can't use `fetchFromGitea` here, as attempting to fetch release archives from git.ardour.org # result in an empty archive. See https://tracker.ardour.org/view.php?id=7328 for more info. src = fetchgit { url = "git://git.ardour.org/ardour/ardour.git"; rev = version; - hash = "sha256-ZL8aTq2OsCWwLUUx5XYbH4eRN+Xz+oMAj9IS07RfTag="; + hash = "sha256-T1o1E5+974dNUwEFW/Pw0RzbGifva2FdJPrCusWMk0E="; }; bundledContent = fetchzip { @@ -198,7 +198,7 @@ stdenv.mkDerivation rec { ''; homepage = "https://ardour.org/"; license = licenses.gpl2Plus; - mainProgram = "ardour7"; + mainProgram = "ardour8"; platforms = platforms.linux; maintainers = with maintainers; [ goibhniu magnetophon mitchmindtree ]; }; From 95f43cba1070e2a6810ed6158c19c6dda3f53859 Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Thu, 26 Oct 2023 14:39:37 -0600 Subject: [PATCH 2/2] ardour: build with libs from nixpkgs --- pkgs/applications/audio/ardour/default.nix | 13 +++++++++++-- pkgs/development/libraries/audio/qm-dsp/default.nix | 5 +++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/ardour/default.nix b/pkgs/applications/audio/ardour/default.nix index 51b6b44ebf25..6b001ce85ae6 100644 --- a/pkgs/applications/audio/ardour/default.nix +++ b/pkgs/applications/audio/ardour/default.nix @@ -14,15 +14,19 @@ , fftw , fftwSinglePrec , flac +, fluidsynth , glibc , glibmm , graphviz , gtkmm2 , harvid +, hidapi , itstool +, kissfft , libarchive , libjack2 , liblo +, libltc , libogg , libpulseaudio , librdf_raptor @@ -43,6 +47,7 @@ , perl , pkg-config , python3 +, qm-dsp , readline , rubberband , serd @@ -116,12 +121,16 @@ stdenv.mkDerivation rec { fftw fftwSinglePrec flac + fluidsynth glibmm gtkmm2 + hidapi itstool + kissfft libarchive libjack2 liblo + libltc libogg libpulseaudio librdf_raptor @@ -140,6 +149,7 @@ stdenv.mkDerivation rec { pango perl python3 + qm-dsp readline rubberband serd @@ -159,9 +169,8 @@ stdenv.mkDerivation rec { "--ptformat" "--run-tests" "--test" + "--use-external-libs" ] ++ lib.optional optimize "--optimize"; - # removed because it fixes https://tracker.ardour.org/view.php?id=8161 and https://tracker.ardour.org/view.php?id=8437 - # "--use-external-libs" postInstall = '' # wscript does not install these for some reason diff --git a/pkgs/development/libraries/audio/qm-dsp/default.nix b/pkgs/development/libraries/audio/qm-dsp/default.nix index 59f7d169291b..01a3933fe2b3 100644 --- a/pkgs/development/libraries/audio/qm-dsp/default.nix +++ b/pkgs/development/libraries/audio/qm-dsp/default.nix @@ -41,6 +41,11 @@ stdenv.mkDerivation rec { "LIBDIR=${placeholder "out"}/lib" ]; + postInstall = '' + mv $out/include/qm-dsp/* $out/include + rmdir $out/include/qm-dsp + ''; + env.NIX_CFLAGS_COMPILE = "-I${kissfft}/include/kissfft"; meta = with lib; {