anchor.diff:    configureFlags = [
       "--datadir=${system}/share"
       "--sysconfdir=/etc"
  -    "--with-systemdsystemunitdir=$(out)/etc/systemd/system"
  +    "--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 = "INTROSPECTION_GIRDIR=$(out)/share/gir-1.0 INTROSPECTION_TYPELIBDIR=$(out)/lib/girepository-1.0";
  +  makeFlags = [
  +    "INTROSPECTION_GIRDIR=${placeholder "out"}/share/gir-1.0"
  +    "INTROSPECTION_TYPELIBDIR=${placeholder "out"}/lib/girepository-1.0"
  +  ];
   
  -  installFlags=["datadir=$(out)/share" "sysconfdir=$(out)/etc"];
  +  installFlags = [
  +    "datadir=${placeholder "out"}/share"
  +    "sysconfdir=${placeholder "out"}/etc"
  +  ];
   
     inherit doCheck;
     checkInputs = [dbus];
  
positive.code:     [ glib gtk-doc pkgconfig intltool perl ]
      ++ [ libxslt docbook_xsl docbook_xml_dtd_412 ]; # man pages
    buildInputs =
      [ glib expat pam spidermonkey_52 ]
      ++ stdenv.lib.optional useSystemd systemd
      ++ stdenv.lib.optional withGnome gobject-introspection;
  
  
negative.code: in
  
  stdenv.mkDerivation rec {
    pname = "polkit";
    version = "0.116";
  
    src = fetchurl {
      url = "https://www.freedesktop.org/software/${pname}/releases/${pname}-${version}.tar.gz";
      sha256 = "1c9lbpndh5zis22f154vjrhnqw65z8s85nrgl42v738yf6g0q5w8";
    };
  
    postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
      sed -i -e "s/-Wl,--as-needed//" configure.ac
  