anchor.diff:      sha256 = "1gnrcnq2ksnh7fsa301v1c4p5dqrbqpjylf02rg3za3ab58wxi7l";
     };
   
  -  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
  -    ];
  +  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
  
positive.code:     EOF
    '';
  
    meta = with stdenv.lib; {
      description = "Multi-track hard disk recording software";
      homepage = http://ardour.org/;
      license = licenses.gpl2;
      maintainers = with maintainers; [ ];
      platforms = with platforms;
        x86_64-linux;
    };
  
negative.code:     patchShebangs ./tools/
    '';
  
    preConfigure = ''
      wafFlagsArray+=("--prefix=$out")
    '';
  
    wafFlags = [
      "--optimize"
      "--docs"
      "--with-backends=jack,alsa"
    ];
  
    postInstall = ''
      # Install desktop file
      mkdir -p "$out/share/applications"
      cat > "$out/share/applications/ardour.desktop" << EOF
  