anchor.diff:      glib gtk3 libappindicator-gtk3 libnotify
       gst_all_1.gstreamer gst_all_1.gst-plugins-base dbus-glib udev
       libgudev
  -  ] ++ (if useFfmpeg then [ ffmpeg ] else [ libav_12 ])
  +  ] ++ (if useFfmpeg then [ ffmpeg ] else [ patched_libav_12 ])
     ++ lib.optional useFdk fdk_aac;
   
     dontUseCmakeConfigure = true;
  
positive.code: }:
  
  stdenv.mkDerivation rec {
    version = "1.0.7";
    name = "handbrake-${version}";
  
    src = fetchFromGitHub {
      owner  = "HandBrake";
      repo   = "HandBrake";
      rev    = "${version}";
      sha256 = "1pdrvicq40s8n23n6k8k097kkjs3ah5wbz1mvxnfy3h2mh5rwk57";
    };
  
    nativeBuildInputs = [
      cmake python2 pkgconfig yasm autoconf automake libtool m4
  
negative.code: #
  # Only tested on Linux
  
  { stdenv, lib, fetchurl,
    python2, pkgconfig, yasm, harfbuzz, zlib,
    autoconf, automake, cmake, libtool, m4, jansson,
    libass, libiconv, libsamplerate, fribidi, libxml2, bzip2,
  