anchor.diff:    configureFlags = [
       "--sysconfdir=/etc"
       "--localstatedir=/var"
  +    "--disable-gtk-doc"
  +    "--enable-man"
  +    "--enable-lvm2"
  +    "--enable-lvmcache"
  +    #"--enable-iscsi"  # TODO: Enable
  +    "--enable-btrfs"
  +    "--enable-zram"
  +    "--enable-lsm"
  +    "--enable-bcache"
  +    "--with-modloaddir=/etc/modules-load.d"
  +    "--with-modprobedir=/etc/modprobe.d"
     ];
   
  -  preBuild = ''
  -    INTROSPECTION_TYPELIBDIR="$(grep -r 'INTROSPECTION_TYPELIBDIR = ' udisks/Makefile | awk -F'= ' '{print $2}')"
  -    INTROSPECTION_GIRDIR="$(grep -r 'INTROSPECTION_GIRDIR = ' udisks/Makefile | awk -F'= ' '{print $2}')"
  +  preInstall = ''
       installFlagsArray+=(
         "sysconfdir=$out/etc"
  -      "INTROSPECTION_TYPELIBDIR=$(echo "$INTROSPECTION_TYPELIBDIR" | sed "s,${gobject-introspection},$out,g")"
  -      "INTROSPECTION_GIRDIR=$(echo "$INTROSPECTION_GIRDIR" | sed "s,${gobject-introspection},$out,g")"
  +      "localstatedir=$TMPDIR"
       )
     '';
  -
  -  passthru = {
  -    srcVerification = fetchurl {
  -      failEarly = true;
  -      pgpsigUrls = map (n: "${n}.sign") src.urls;
  -      pgpKeyFingerprint = "3DB4 6B55 EFA5 9D40 E623  2148 D14E F15D AFE1 1347";
  -      inherit (src) urls outputHash outputHashAlgo;
  -    };
  -  };
   
     meta = with stdenv.lib; {
       homepage = http://www.freedesktop.org/wiki/Software/udisks;
  
positive.code: , libxslt
  
  , acl
  , systemd_lib
  , glib
  , gobject-introspection
  , gnused
  , libatasmart
  , polkit
  , util-linux_full
  , libgudev
  }:
  
  stdenv.mkDerivation rec {
    name = "udisks-2.1.8";
  
    src = fetchurl {
      url = "https://udisks.freedesktop.org/releases/${name}.tar.bz2";
      multihash = "QmSknjMv6ad2CqSDwtVJQ5JQMCVWzo536T7dyVzKK6C1qz";
      hashOutput = false;
      sha256 = "da416914812a77e5f4d82b81deb8c25799fd3228d27d52f7bf89a501b1857dda";
    };
  
    # FIXME remove /var/run/current-system/sw/* references
    # FIXME add references to parted, cryptsetup, etc (see the sources)
    postPatch = ''
      # We need to fix the default path inside of udisks
      grep -q '"/usr/bin:/bin:/usr/sbin:/sbin"' src/main.c
  
negative.code:   buildInputs = [
      acl
      glib
      libatasmart
      libblockdev
      libconfig
      libgudev
      libstoragemgmt
      lvm2
      polkit
      systemd_lib
    ];
  