anchor.diff:    buildInputs = [
       gst-plugins-base
       orc
  +    libintl
  +    opencore-amr
  +  ] ++ lib.optionals enableGplPlugins [
       a52dec
       libcdio
       libdvdread
       libmad
       libmpeg2
       x264
  -    libintl
  -    opencore-amr
     ] ++ lib.optionals stdenv.isDarwin [
       IOKit
       CoreFoundation
  
positive.code: , IOKit
  , CoreFoundation
  , DiskArbitration
  }:
  
  stdenv.mkDerivation rec {
    pname = "gst-plugins-ugly";
    version = "1.18.5";
  
    outputs = [ "out" "dev" ];
  
    src = fetchurl {
      url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz";
      sha256 = "sha256-3zKAPpj4qZeTc/osp+BeYvl3sQl1dtOoBhnZ9cafZtk=";
    };
  
    nativeBuildInputs = [
  
negative.code:   mesonFlags = [
      "-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing
      "-Dsidplay=disabled" # sidplay / sidplay/player.h isn't packaged in nixpkgs as of writing
    ] ++ (if enableGplPlugins then [
      "-Dgpl=enabled"
    ] else [
      "-Da52dec=disabled"
      "-Dcdio=disabled"
      "-Ddvdread=disabled"
      "-Dmpeg2dec=disabled"
      "-Dsidplay=disabled"
      "-Dx264=disabled"
    ]);
  
    postPatch = ''
      patchShebangs \
  