anchor.diff:      "--enable-headless-tests"
     ];
   
  -  # fix paths
  +  # Fix paths
     makeFlags = [
       "INTROSPECTION_GIRDIR=${placeholder "dev"}/share/gir-1.0/"
       "INTROSPECTION_TYPELIBDIR=${placeholder "out"}/lib/girepository-1.0"
     ];
   
  -  preConfigure = ''
  -    ./autogen.sh
  -  '';
  -
     # TODO: Requires /etc/machine-id
     doCheck = false;
   
  -  # glib-2.62 deprecations
  +  # Ignore deprecation errors
     NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS";
  +
  +  passthru.updateScript = gitUpdater {
  +    inherit pname version;
  +    ignoredVersions = ".ubuntu.*";
  +  };
   
     meta = with lib; {
       description = "Application matching framework";
  
positive.code: 
  stdenv.mkDerivation rec {
    pname = "bamf";
    version = "0.5.5";
  
    outputs = [ "out" "dev" "devdoc" ];
  
    src = fetchgit {
      url = "https://git.launchpad.net/~unity-team/bamf";
      rev = "${version}+21.10.20210710-0ubuntu1";
      sha256 = "0iwz5z5cz9r56pmfjvjd2kcjlk416dw6g38svs33ynssjgsqbdm0";
    };
  
    nativeBuildInputs = [
      (python3.withPackages (ps: with ps; [ lxml ])) # Tests
      autoconf
      automake
      dbus
      docbook_xsl
      gnome.gnome-common
      gobject-introspection
      gtk-doc
      libtool
      pkg-config
      vala
      which
  
negative.code: { stdenv
  , lib
  , autoreconfHook
  , gitUpdater
  , gnome
  , which
  , fetchgit
  