bitbox-bridge: add passthru attributes

nixos tests and nix-update-script added

Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>
This commit is contained in:
John Titor 2025-03-28 22:49:21 +05:30 committed by Masum Reza
parent a27582f5fe
commit b20f328908

View file

@ -5,6 +5,8 @@
rustPlatform,
pkg-config,
libudev-zero,
nixosTests,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@ -41,6 +43,11 @@ rustPlatform.buildRustPackage (finalAttrs: {
install -Dm644 bitbox-bridge/release/linux/hid-digitalbitbox.rules $out/etc/udev/rules.d/50-hid-digitalbitbox.rules
'';
passthru = {
tests.basic = nixosTests.bitbox-bridge;
updateScript = nix-update-script { };
};
meta = {
description = "A bridge service that connects web wallets like Rabby to BitBox02";
homepage = "https://github.com/BitBoxSwiss/bitbox-bridge";