{ fetchFromGitHub, rustPlatform, openssl, dbus, udev, pkg-config }: rustPlatform.buildRustPackage { pname = "softu2f"; version = "20221218-git"; src = fetchFromGitHub { owner = "danstiner"; repo = "rust-u2f"; rev = "da1a256e804395588c21c0dd9891310506746e7a"; sha256 = "sha256-Ci1X7Gi1+sL7sPXcPiIjAHDJOO8SmDD9GRajdv6tm0o="; }; cargoSha256 = "sha256-LrO7zW5+BcuxoGfNe2UW8q65GAhVeVyLoPC60htIt8k="; buildInputs = [ openssl dbus udev ]; nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ]; }