Compare commits
1
Commits
main
...
588e39cb81
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
588e39cb81
|
+4
-1
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
`services.bisonw` wraps the Bison Wallet daemon. You can provide either a rendered configuration through `services.bisonw.settings` or point at an existing file with `services.bisonw.configFile`.
|
`services.bisonw` wraps the Bison Wallet daemon. You can provide either a rendered configuration through `services.bisonw.settings` or point at an existing file with `services.bisonw.configFile`.
|
||||||
|
|
||||||
|
## Package Note
|
||||||
|
|
||||||
|
A valid Bison Wallet Build ID (also used for JS/CSS cache busting) requires Go VCS metadata: build from a Git checkout retaining `.git` with `-buildvcs=true`, or inject an equivalent revision during the build.
|
||||||
|
|
||||||
## sops-nix
|
## sops-nix
|
||||||
|
|
||||||
Render `dexc.conf` with `sops-nix` and point the service at it. Example:
|
Render `dexc.conf` with `sops-nix` and point the service at it. Example:
|
||||||
@@ -72,4 +76,3 @@ services.bisonw.operator = {
|
|||||||
|
|
||||||
- `services.bisonw.dataDir` defaults to `/var/lib/bisonw`. The service owns and uses this path as `HOME` and `XDG_DATA_HOME`.
|
- `services.bisonw.dataDir` defaults to `/var/lib/bisonw`. The service owns and uses this path as `HOME` and `XDG_DATA_HOME`.
|
||||||
- The unit runs as the `services.bisonw.user`/`group` (default `bisonw`).
|
- The unit runs as the `services.bisonw.user`/`group` (default `bisonw`).
|
||||||
|
|
||||||
|
|||||||
+17
-6
@@ -1,18 +1,21 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchgit,
|
||||||
|
git,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule (finalAttrs: {
|
buildGoModule (finalAttrs: {
|
||||||
pname = "bisonw";
|
pname = "bisonw";
|
||||||
version = "1.0.6";
|
version = "1.0.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
# Keep the checkout metadata: Bison Wallet reads vcs.revision from Go build
|
||||||
owner = "decred";
|
# info for its Build ID and frontend cache-busting version.
|
||||||
repo = "dcrdex";
|
src = fetchgit {
|
||||||
|
url = "https://github.com/decred/dcrdex.git";
|
||||||
rev = "v${finalAttrs.version}";
|
rev = "v${finalAttrs.version}";
|
||||||
hash = "sha256-MPHi+mqmumxZ/pFxBYxz73M6imi0GONV0M3raPq0yoI=";
|
hash = "sha256-IlJzvL0ZaeQ+BaKGArS6J5Wk2wctOVba7Xg8qjVI8KY=";
|
||||||
|
leaveDotGit = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
subPackages = [
|
subPackages = [
|
||||||
@@ -26,6 +29,15 @@ buildGoModule (finalAttrs: {
|
|||||||
|
|
||||||
vendorHash = "sha256-KCof0GFFaNWgMb2yR4l4lyeVZdiJSIyn4mgZ/InMZhk=";
|
vendorHash = "sha256-KCof0GFFaNWgMb2yR4l4lyeVZdiJSIyn4mgZ/InMZhk=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ git ];
|
||||||
|
GOFLAGS = [ "-buildvcs=true" ];
|
||||||
|
|
||||||
|
# fetchgit does not retain the Git index. Restore it in the writable build
|
||||||
|
# tree so Go does not mark the otherwise pristine checkout as modified.
|
||||||
|
preBuild = ''
|
||||||
|
git reset --mixed HEAD
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Bison Wallet - Multi-coin wallet with built-in DEX trading";
|
description = "Bison Wallet - Multi-coin wallet with built-in DEX trading";
|
||||||
homepage = "https://github.com/decred/dcrdex";
|
homepage = "https://github.com/decred/dcrdex";
|
||||||
@@ -33,4 +45,3 @@ buildGoModule (finalAttrs: {
|
|||||||
mainProgram = "bisonw";
|
mainProgram = "bisonw";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user