19 lines
617 B
Nix
19 lines
617 B
Nix
{ fetchFromGitHub, rustPlatform, openssl, dbus, udev, pkg-config }:
|
|
rustPlatform.buildRustPackage {
|
|
pname = "softu2f";
|
|
version = "20221218-git";
|
|
src = fetchFromGitHub {
|
|
owner = "danstiner";
|
|
repo = "rust-u2f";
|
|
rev = "da1c12db6167f51c46091d45a274a56ab67e45e7";
|
|
sha256 = "sha256-413T3bUC6enqhwr6YiBEK9RRV5cHHPO1M682YiiSUMk=";
|
|
};
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
outputHashes = {
|
|
"authenticator-0.3.1" = "sha256-ixGDMZNRBRyuCZnNW+MkzWP6PTzEHRzpKcEHXRp2HhQ=";
|
|
};
|
|
};
|
|
buildInputs = [ openssl dbus udev ];
|
|
nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ];
|
|
}
|