{ lib, stdenv, fetchurl, pkg-config, automake, autoconf, udisks1, dbus-glib, glib, libconfuse }:

stdenv.mkDerivation rec {
  pname = "udisks-glue";
  version = "1.3.5";

  src = fetchurl {
    url = "https://github.com/fernandotcl/udisks-glue/archive/release-${version}.tar.gz";
    sha256 = "317d25bf249278dc8f6a5dcf18f760512427c772b9afe3cfe34e6e1baa258176";
  };

  nativeBuildInputs = [ pkg-config automake autoconf ];
  buildInputs = [ udisks1 dbus-glib glib libconfuse ];

  preConfigure = "sh autogen.sh";

  meta = {
    homepage = "https://github.com/fernandotcl/udisks-glue";
    description = "A tool to associate udisks events to user-defined actions";
    platforms = lib.platforms.linux;
    maintainers = with lib.maintainers; [ pSub ];
    license = lib.licenses.bsd2;
    broken = true;
    hydraPlatforms = [ ];
  };
}