anchor.diff:      rev = version;
       sha256 = "1phgp8fs0dlj74kbkqlvfniwc32daz47b3pvsxlfxqzyrp77xrfm";
     };
  +
  +  patches = [
  +    # meson install tries to create /var/lib/boltd
  +    ./0001-skip-mkdir.patch
  +
  +    # https://github.com/NixOS/nixpkgs/issues/104429
  +    # Upstream issue: https://gitlab.freedesktop.org/bolt/bolt/-/issues/167
  +    (fetchpatch {
  +      name = "disable-atime-tests.diff";
  +      url = "https://gitlab.freedesktop.org/roberth/bolt/-/commit/1f672a7de2ebc4dd51590bb90f3b873a8ac0f4e6.diff";
  +      sha256 = "134f5s6kjqs6612pwq5pm1miy58crn1kxbyyqhzjnzmf9m57fnc8";
  +    })
  +
  +    # Fix tests with newer umockdev
  +    (fetchpatch {
  +      url = "https://gitlab.freedesktop.org/bolt/bolt/-/commit/130e09d1c7ff02c09e4ad1c9c36e9940b68e58d8.patch";
  +      sha256 = "HycuM7z4VvtBuZZLU68tBxGT1YjaqJRS4sKyoTGHZEk=";
  +    })
  +  ];
   
     nativeBuildInputs = [
       asciidoc
  
positive.code:       (p: [ p.pygobject3 p.dbus-python p.python-dbusmock ]))
    ];
  
    patches = [
      # meson install tries to create /var/lib/boltd
      ./0001-skip-mkdir.patch
  
      # https://github.com/NixOS/nixpkgs/issues/104429
      # Upstream issue: https://gitlab.freedesktop.org/bolt/bolt/-/issues/167
      (fetchpatch {
        name = "disable-atime-tests.diff";
        url = "https://gitlab.freedesktop.org/roberth/bolt/-/commit/1f672a7de2ebc4dd51590bb90f3b873a8ac0f4e6.diff";
        sha256 = "134f5s6kjqs6612pwq5pm1miy58crn1kxbyyqhzjnzmf9m57fnc8";
      })
      ];
  
    postPatch = ''
      patchShebangs scripts tests
    '';
  
negative.code: { stdenv
  , lib
  , meson
  , ninja
  , pkg-config
  