anchor.diff:      sha256 = "14jhla289cj45946h0hq2an0a9g4wkwb3v4571bla6ixfvn20rfd";
     };
   
  -  buildInputs = [ pkgconfig flac libogg libvorbis ]
  -    ++ stdenv.lib.optional stdenv.isDarwin Carbon;
  -
  -  # need headers from the Carbon.framework in /System/Library/Frameworks to
  -  # compile this on darwin -- not sure how to handle
  -  preConfigure = stdenv.lib.optionalString stdenv.isDarwin
  -    ''
  -      NIX_CFLAGS_COMPILE+=" -I$SDKROOT/System/Library/Frameworks/Carbon.framework/Versions/A/Headers"
  -    '';
  -
  -  # Needed on Darwin.
  -  NIX_CFLAGS_LINK = "-logg -lvorbis";
  +  buildInputs = [ pkgconfig flac libogg libvorbis ] ;
   
     meta = with stdenv.lib; {
       description = "A C library for reading and writing files containing sampled sound";
  
positive.code: { stdenv, fetchurl, flac, libogg, libvorbis, pkgconfig
  , Carbon
  }:
  
  stdenv.mkDerivation rec {
    name = "libsndfile-1.0.26";
  
negative.code:     license     = licenses.lgpl2Plus;
      maintainers = with maintainers; [ lovek323 ];
      platforms   = platforms.unix;
    };
  }
  