Skip to content

Commit aed49c8

Browse files
committed
feat(pkgs): add bv-bin v0.13.0 beads viewer package
- Add cross-platform binary package (linux/darwin, x86_64/aarch64) - Graph-aware task management TUI for beads projects - MIT licensed, sources from GitHub releases
1 parent fb7f0cc commit aed49c8

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

pkgs/custom/bv-bin/package.nix

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
lib,
3+
stdenvNoCC,
4+
fetchurl,
5+
...
6+
}: let
7+
version = "0.13.0";
8+
pname = "bv";
9+
10+
sources = {
11+
"x86_64-linux" = {
12+
url = "https://github.com/Dicklesworthstone/beads_viewer/releases/download/v${version}/bv_${version}_linux_amd64.tar.gz";
13+
hash = "sha256-8Ux9Brf2u78ljmTB49EBXCAn41WssOl8c+dZ1DZDjkw=";
14+
};
15+
"aarch64-linux" = {
16+
url = "https://github.com/Dicklesworthstone/beads_viewer/releases/download/v${version}/bv_${version}_linux_arm64.tar.gz";
17+
hash = "sha256-dxkewC884pA0exBZFixC2A+VgTw5ZyirnD8Zj9ncAwg=";
18+
};
19+
"x86_64-darwin" = {
20+
url = "https://github.com/Dicklesworthstone/beads_viewer/releases/download/v${version}/bv_${version}_darwin_amd64.tar.gz";
21+
hash = "sha256-n7+K0grNaNKDvrJurt25Ow3/2wuWVvrjp38fFWcPYfA=";
22+
};
23+
"aarch64-darwin" = {
24+
url = "https://github.com/Dicklesworthstone/beads_viewer/releases/download/v${version}/bv_${version}_darwin_arm64.tar.gz";
25+
hash = "sha256-eCA/NKQ7QT9KEEOtBiwOb9ksxj2k202ENK1tWKOdCEY=";
26+
};
27+
};
28+
29+
platformSource = sources.${stdenvNoCC.hostPlatform.system} or (throw "Unsupported platform: ${stdenvNoCC.hostPlatform.system}");
30+
in
31+
stdenvNoCC.mkDerivation {
32+
inherit pname version;
33+
34+
src = fetchurl {
35+
inherit (platformSource) url hash;
36+
};
37+
38+
sourceRoot = ".";
39+
40+
dontConfigure = true;
41+
dontBuild = true;
42+
43+
installPhase = ''
44+
runHook preInstall
45+
46+
install -Dm755 bv $out/bin/bv
47+
48+
runHook postInstall
49+
'';
50+
51+
meta = {
52+
description = "Graph-aware task management TUI for beads projects";
53+
homepage = "https://github.com/Dicklesworthstone/beads_viewer";
54+
license = lib.licenses.mit;
55+
platforms = lib.attrNames sources;
56+
maintainers = with lib.maintainers; [DivitMittal];
57+
sourceProvenance = with lib.sourceTypes; [binaryNativeCode];
58+
mainProgram = "bv";
59+
};
60+
}

0 commit comments

Comments
 (0)