Initial commit

This commit is contained in:
Andrey Golovizin 2022-12-18 13:40:43 +01:00
commit aca6849738
5 changed files with 96 additions and 0 deletions

14
softu2f.nix Normal file
View file

@ -0,0 +1,14 @@
{ 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 ];
}