37 lines
807 B
Nix
37 lines
807 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "bisonw";
|
|
version = "1.0.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "decred";
|
|
repo = "dcrdex";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-NDG1wucELH+2St63yZxEDTGTpYt3NT6EPYcKKWsvU5g=";
|
|
};
|
|
|
|
subPackages = [
|
|
"client/cmd/bisonw"
|
|
"client/cmd/bwctl"
|
|
];
|
|
|
|
# buildNpmPackage fails with:
|
|
# ERROR: The package-lock.json file does not exist!
|
|
# Luckily, upstream includes pre-built frontend files.
|
|
|
|
vendorHash = "sha256-1B2bvJrsHXPPpgem0W2VhQDQiCxaheoq16RCzm+NO0E=";
|
|
|
|
meta = with lib; {
|
|
description = "Bison Wallet - Multi-coin wallet with built-in DEX trading";
|
|
homepage = "https://github.com/decred/dcrdex";
|
|
license = licenses.blueOak100;
|
|
mainProgram = "bisonw";
|
|
};
|
|
})
|
|
|