anchor.diff:    setupHook = ./setup-hook.sh;
   
     buildInputs = [ libelf setupHook pcre ]
  +    ++ optionals stdenv.isLinux [ utillinuxMinimal ] # for libmount
       ++ optionals doCheck [ tzdata libxml2 desktop_file_utils shared_mime_info ];
   
     nativeBuildInputs = [ pkgconfig gettext perl python ];
  
positive.code: { stdenv, fetchurl, pkgconfig, gettext, perl, python
  , libiconv, libintlOrEmpty, zlib, libffi, pcre, libelf
  
  # this is just for tests (not in closure of any regular package)
  , coreutils, dbus_daemon, libxml2, tzdata, desktop_file_utils, shared_mime_info, doCheck ? false
  
negative.code: with stdenv.lib;
  
  assert stdenv.isFreeBSD || stdenv.isDarwin || stdenv.cc.isGNU;
  assert stdenv.isLinux -> utillinuxMinimal != null;
  
  # TODO:
  # * Add gio-module-fam
  