anchor.diff: -{ stdenv, fetchFromGitHub, alsaLib, aubio, boost, cairomm, curl, doxygen, dbus, fftw
  -, fftwSinglePrec, flac, glibc, glibmm, graphviz, gtk2, gtkmm2, libjack2
  -, libgnomecanvas, libgnomecanvasmm, liblo, libmad, libogg, librdf
  -, librdf_raptor, librdf_rasqal, libsamplerate, libsigcxx, libsndfile
  -, libusb, libuuid, libxml2, libxslt, lilv-svn, lv2, makeWrapper, pango
  -, perl, pkgconfig, python, rubberband, serd, sord-svn, sratom, suil, taglib, vampSDK }:
  +{ stdenv
  +, fetchFromGitHub
  +, alsaLib
  +, aubio
  +, boost
  +, cairomm
  +, curl
  +, doxygen
  +, dbus
  +, fftw
  +, fftwSinglePrec
  +, flac
  +, glibc
  +, glibmm
  +, graphviz
  +, gtk2
  +, gtkmm2
  +, libjack2
  +, libgnomecanvas
  +, libgnomecanvasmm
  +, liblo
  +, libmad
  +, libogg
  +, librdf
  +, librdf_raptor
  +, librdf_rasqal
  +, libsamplerate
  +, libsigcxx
  +, libsndfile
  +, libusb
  +, libuuid
  +, libxml2
  +, libxslt
  +, lilv-svn
  +, lv2
  +, makeWrapper
  +, pango
  +, perl
  +, pkgconfig
  +, python
  +, rubberband
  +, serd
  +, sord-svn
  +, sratom
  +, suil
  +, taglib
  +, vampSDK
  +, waf
  +}:
   
   let
  -  # Ardour git repo uses a mix of annotated and lightweight tags. Annotated
  -  # tags are used for MAJOR.MINOR versioning, and lightweight tags are used
  -  # in-between; MAJOR.MINOR.REV where REV is the number of commits since the
  -  # last annotated tag. A slightly different version string format is needed
  -  # for the 'revision' info that is built into the binary; it is the format of
  -  # "git describe" when _not_ on an annotated tag(!): MAJOR.MINOR-REV-HASH.
  -
  -  # Version to build.
  -  tag = "4.4";
  +  version = "4.4";
   in
  -
   stdenv.mkDerivation rec {
  -  name = "ardour-${tag}";
  +  name = "ardour-${version}";
   
     src = fetchFromGitHub {
       version = 1;
  
positive.code:     patchShebangs ./tools/
    '';
  
    configurePhase = "python waf configure --optimize --docs --with-backends=jack,alsa --prefix=$out";
  
    buildPhase = "python waf";
  
    installPhase = ''
      python waf install
  
      # Install desktop file
      mkdir -p "$out/share/applications"
      cat > "$out/share/applications/ardour.desktop" << EOF
  
negative.code:     sha256 = "1gnrcnq2ksnh7fsa301v1c4p5dqrbqpjylf02rg3za3ab58wxi7l";
    };
  
    nativeBuildInputs = [
      waf
    ];
  
    buildInputs = [
      alsaLib
      aubio
      boost
      cairomm
      curl
      doxygen
      dbus
      fftw
      fftwSinglePrec
      flac
      glibc
      glibmm
      graphviz
      gtk2
      gtkmm2
      libjack2
      libgnomecanvas
      libgnomecanvasmm
      liblo
      libmad
      libogg
      librdf
      librdf_raptor
      librdf_rasqal
      libsamplerate
      libsigcxx
      libsndfile
      libusb
      libuuid
      libxml2
      libxslt
      lilv-svn
      lv2
      makeWrapper
      pango
      perl
      pkgconfig
      python
      rubberband
      serd
      sord-svn
      sratom
      suil
      taglib
      vampSDK
    ];
  
    # ardour's wscript has a "tarball" target but that required the git revision
    # be available. Since this is an unzipped tarball fetched from github we
  