anchor.diff:      sed 's|/usr/include/libintl.h|${glibc.dev}/include/libintl.h|' -i wscript
       patchShebangs ./tools/
       substituteInPlace libs/ardour/video_tools_paths.cc \
  -      --replace 'ffmpeg_exe = X_("");' 'ffmpeg_exe = X_("${ffmpeg_3}/bin/ffmpeg");' \
  -      --replace 'ffprobe_exe = X_("");' 'ffprobe_exe = X_("${ffmpeg_3}/bin/ffprobe");'
  +      --replace 'ffmpeg_exe = X_("");' 'ffmpeg_exe = X_("${ffmpeg}/bin/ffmpeg");' \
  +      --replace 'ffprobe_exe = X_("");' 'ffprobe_exe = X_("${ffmpeg}/bin/ffprobe");'
     '';
   
     postInstall = ''
  
positive.code: }:
  stdenv.mkDerivation rec {
    pname = "ardour";
    version = "6.5";
  
    # don't fetch releases from the GitHub mirror, they are broken
    src = fetchgit {
      url = "git://git.ardour.org/ardour/ardour.git";
      rev = version;
      sha256 = "0sd38hchyr16biq9hcxha4ljy3pf0yhcgn90i5zfqcznnc57ildx";
    };
  
    patches = [
  
negative.code: , curl
  , dbus
  , doxygen
  , ffmpeg
  , fftw
  , fftwSinglePrec
  , flac
  