{
  fetchFromGitea,
  lib,
  rustPlatform,
}:
rustPlatform.buildRustPackage {
  pname = "deskwhich";
  version = "unstable-2024-04-30";

  src = fetchFromGitea {
    domain = "git.grimmauld.de";
    owner = "grimmauld";
    repo = "deskwhich";
    rev = "ed412216666a6a22918e57c5dd1fde3855eb0f5f";
    hash = "sha256-uSXxUehZY1Sp08X3khSQtQc8AT00jJTAsQ+OfTTTkss=";
  };

  cargoHash = "sha256-x0ARqeMdmnjMF0o2oZlxHnUUj9hEdqg4a+Z/WYax2Co=";

  meta = {
    description = "tool to find the path of desktop entries";
    homepage = "https://codeberg.org/axtlos/deskwhich";
    license = lib.licenses.gpl3Only;
    mainProgram = "deskwhich";
    maintainers = with lib.maintainers; [ grimmauld ];
    platforms = lib.platforms.linux;
  };
}