{ lib, buildGoModule, fetchFromGitHub, }: buildGoModule (finalAttrs: { pname = "bisonw"; version = "1.0.4"; src = fetchFromGitHub { owner = "decred"; repo = "dcrdex"; rev = "v${finalAttrs.version}"; hash = "sha256-P3aIoCpQoCpc1OPMssbBezgSgMuS1lMuQxHDfPT1pGY="; }; 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-PsEe2UEhbeKCEmZA1SPj8QYawvtw0+vflKStFr6k5eE="; 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"; }; })