anchor.diff:  { lib, stdenv
   , fetchFromGitLab
  -, fetchpatch
   , pkg-config
  +, gobject-introspection
   , meson
   , ninja
   , perl
  
positive.code:   doCheck = true;
  
    postPatch = ''
      patchShebangs po/check-translations.sh
    '';
  
    meta = with lib; {
      homepage = "https://fprint.freedesktop.org/";
      description = "D-Bus daemon that offers libfprint functionality over the D-Bus interprocess communication bus";
      license = licenses.gpl2;
      platforms = platforms.linux;
      maintainers = with maintainers; [ abbradar elyhaka ];
    };
  
negative.code: 
  stdenv.mkDerivation rec {
    pname = "fprintd";
    version = "1.90.9";
    outputs = [ "out" "devdoc" ];
  
    src = fetchFromGitLab {
      domain = "gitlab.freedesktop.org";
      owner = "libfprint";
      repo = pname;
      rev = "v${version}";
      sha256 = "rOTVThHOY/Q2IIu2RGiv26UE2V/JFfWWnfKZQfKl5Mg=";
    };
  
    nativeBuildInputs = [
      pkg-config
      meson
      ninja
      perl # for pod2man
      gettext
      gtk-doc
      libxslt
      # TODO: apply this to D-Bus so that other packages can benefit.
      # https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/202
      (dbus.overrideAttrs (attrs: {
        postInstall = attrs.postInstall or "" + ''
          ln -s ${fetchurl {
            url = "https://gitlab.freedesktop.org/dbus/dbus/-/raw/b207135dbd8c09cf8da28f7e3b0a18bb11483663/doc/catalog.xml";
            sha256 = "1/43XwAIcmRXfM4OXOPephyQyUnW8DSveiZbiPvW72I=";
          }} $out/share/xml/dbus-1/catalog.xml
        '';
      }))
      docbook-xsl-nons
      docbook_xml_dtd_412
    ];
  
    buildInputs = [
      glib
      polkit
      nss
      pam
  