anchor.diff:  , intltool, spidermonkey_60 , gobject-introspection, libxslt, docbook_xsl, dbus
   , docbook_xml_dtd_412, gtk-doc, coreutils
   , useSystemd ? (stdenv.isLinux && !stdenv.hostPlatform.isMusl), systemd, elogind
  -, withGnome ? true
  +, withIntrospection ? true
   # A few tests currently fail on musl (polkitunixusertest, polkitunixgrouptest, polkitidentitytest segfault).
   # Not yet investigated; it may be due to the "Make netgroup support optional"
   # patch not updating the tests correctly yet, or doing something wrong,
  
positive.code:     "--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
      "--with-polkitd-user=polkituser" #TODO? <nixos> config.ids.uids.polkituser
      "--with-os-type=NixOS" # not recognized but prevents impurities on non-NixOS
      (if withGnome then "--enable-introspection" else "--disable-introspection")
    ] ++ stdenv.lib.optional (!doCheck) "--disable-test";
  
    makeFlags = [
  
negative.code:     [ expat pam spidermonkey_60 ]
      # On Linux, fall back to elogind when systemd support is off.
      ++ stdenv.lib.optional stdenv.isLinux (if useSystemd then systemd else elogind)
      ++ stdenv.lib.optional withIntrospection gobject-introspection;
  
    propagatedBuildInputs = [
      glib # in .pc Requires
  