nixpkgs/pkgs/by-name/li/lianad/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
983 B
Nix
Raw Normal View History

2024-07-01 01:22:03 +00:00
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
udev,
}:
rustPlatform.buildRustPackage rec {
pname = "lianad";
version = "8.0"; # keep in sync with liana
2024-07-01 01:22:03 +00:00
src = fetchFromGitHub {
owner = "wizardsardine";
repo = "liana";
rev = "v${version}";
hash = "sha256-2aIaRZNIRgFdA+NVnzOkEE3kYA15CoNBrsNGBhIz0nU=";
2024-07-01 01:22:03 +00:00
};
cargoHash = "sha256-/EkDAZPNka+vRWsAo4i/65lufUu8N/m8cfBsOInjaxQ=";
2024-07-01 01:22:03 +00:00
buildInputs = [ udev ];
postInstall = ''
install -Dm0644 ./contrib/lianad_config_example.toml $out/etc/liana/config.toml
'';
# bypass broken unit tests
doCheck = false;
meta = {
mainProgram = "lianad";
description = "Bitcoin wallet leveraging on-chain timelocks for safety and recovery";
homepage = "https://wizardsardine.com/liana";
license = lib.licenses.bsd3;
maintainers = [
lib.maintainers.dunxen
lib.maintainers.plebhash
];
platforms = lib.platforms.linux;
broken = stdenv.hostPlatform.isAarch64;
};
}