anchor.diff:      patchShebangs .
   
       # Get rid of a check to see if systemd is running to allow libsystemd linking
  -    sed '/libsystemd autoconfigured/s/.*/:/' -i configure
  +    sed '/does not.*systemd/s/.*/:/' -i configure.ac
   
       # polkit-agent-helper-1 is a setuid binary so remap the path in the codebase.
       sed -i 's,PACKAGE_PREFIX "/lib/polkit-1,"/var/setuid-wrappers,g' \
  
positive.code: { stdenv
  , docbook_xml_dtd_412
  , docbook-xsl
  , fetchurl
  , intltool
  , libxslt
  
  , glib
  , expat
  , pam
  , spidermonkey_17
  , gobject-introspection
  , systemd_lib
  }:
  
  stdenv.mkDerivation rec {
    name = "polkit-0.113";
  
    src = fetchurl {
      url = "http://www.freedesktop.org/software/polkit/releases/${name}.tar.gz";
      sha256 = "109w86kfqrgz83g9ivggplmgc77rz8kx8646izvm2jb57h4rbh71";
    };
  
    nativeBuildInputs = [
      docbook_xml_dtd_412
      docbook-xsl
      intltool
      libxslt
    ];
  
  
negative.code:   '';
  
    preConfigure = ''
      NOCONFIGURE=1 ./autogen.sh
  
      configureFlagsArray+=(
        "--with-systemdsystemunitdir=$out/etc/systemd/system"
      )
  