Files
nix-decred/pkgs/bisonw.nix
T

37 lines
807 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule (finalAttrs: {
pname = "bisonw";
version = "1.0.6";
src = fetchFromGitHub {
owner = "decred";
repo = "dcrdex";
rev = "v${finalAttrs.version}";
hash = "sha256-MPHi+mqmumxZ/pFxBYxz73M6imi0GONV0M3raPq0yoI=";
};
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-KCof0GFFaNWgMb2yR4l4lyeVZdiJSIyn4mgZ/InMZhk=";
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";
};
})