{
  lib,
  rustPlatform,
  fetchFromGitHub,
  pkg-config,
  atk,
  gtk3,
  glib,
}:

rustPlatform.buildRustPackage (
  let
    version = "1.0.1";
  in
  {
    pname = "filepicker";
    inherit version;

    src = fetchFromGitHub {
      owner = "paulrouget";
      repo = "static-filepicker";
      rev = "v${version}";
      hash = "sha256-7sRzf3SA9RSBf4O36olXgka8c6Bufdb0qsuTofVe55s=";
    };

    cargoHash = "sha256-aal7ppFkCpNc+QTS4Qklsb9WfJ65QqG6p1eOskiX+/Q=";

    buildInputs = [
      atk
      gtk3
      glib
    ];

    nativeBuildInputs = [ pkg-config ];

    meta = {
      description = "File picker used by VDHCoApp";
      homepage = "https://github.com/paulrouget/static-filepicker";
      license = lib.licenses.gpl2;
      mainProgram = "filepicker";
      maintainers = [ lib.maintainers.hannesgith ];
    };
  }
)
