bitbox-bridge: init at 1.6.1

This commit is contained in:
Izel Nakri
2025-03-20 02:17:30 +05:30
committed by Masum Reza
parent e20d371d93
commit 3a48773f8c
+50
View File
@@ -0,0 +1,50 @@
{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
pkg-config,
libudev-zero,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "bitbox-bridge";
version = "1.6.1";
src = fetchFromGitHub {
owner = "BitBoxSwiss";
repo = "bitbox-bridge";
tag = "v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-+pMXWXGHyyBx3N0kiro9NS0mPmSQzzBmp+pkoBLH7z0=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-6vD0XjGH1PXjiRjgnHWSZSixXOc2Yecui8U5FAGefBU=";
postPatch = ''
rm .cargo/config.toml
'';
nativeBuildInputs = [
pkg-config
];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
libudev-zero
];
meta = {
description = "A bridge service that connects web wallets like Rabby to BitBox02";
homepage = "https://github.com/BitBoxSwiss/bitbox-bridge";
downloadPage = "https://bitbox.swiss/download/";
changelog = "https://github.com/BitBoxSwiss/bitbox-bridge/blob/v${finalAttrs.version}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
izelnakri
tensor5
];
mainProgram = "bitbox-bridge";
platforms = lib.platforms.unix;
};
})