anchor.diff:  , xorg
   , libgudev
   , wavpack
  -, jack2
   }:
   
   assert gtkSupport -> gtk3 != null;
  
positive.code: { stdenv, fetchurl, meson, ninja, pkgconfig, python
  , gst-plugins-base, orc, bzip2, gettext
  , libv4l, libdv, libavc1394, libiec61883
  , libvpx, speex, flac, taglib, libshout
  , cairo, gdk-pixbuf, aalib, libcaca
  , libsoup, libpulseaudio, libintl
  , darwin, lame, mpg123, twolame
  , gtkSupport ? false, gtk3 ? null
  # As of writing, jack2 incurs a Qt dependency (big!) via `ffado`.
  # In the fuure we should probably split `ffado`.
  , enableJack ? false
  , libXdamage
  , libXext
  , libXfixes
  
negative.code: in
  stdenv.mkDerivation rec {
    pname = "gst-plugins-good";
    version = "1.16.1";
  
    outputs = [ "out" "dev" ];
  
    src = fetchurl {
      url = "${meta.homepage}/src/${pname}/${pname}-${version}.tar.xz";
      sha256 = "07wgz9anf4ram2snp8n1wv6l0q3pd00iaw8bvw3wgklg05lvxflz";
    };
  
    patches = [ ./fix_pkgconfig_includedir.patch ];
  
    nativeBuildInputs = [
      pkgconfig
      python
      meson
      ninja
      gettext
    ];
  
    buildInputs = [
      gst-plugins-base
      orc
      bzip2
      libdv
      libvpx
      speex
      flac
      taglib
      cairo
      gdk-pixbuf
      aalib
      libcaca
      libsoup
      libshout
      lame
      mpg123
      twolame
      libintl
      libXdamage
      libXext
      libXfixes
  