blob: d65b9dc3740beb94354ab3bf82bd1b2423d1d584 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
pname = "bbrew";
version = "2.3.2";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "Valkyrie00";
repo = "bold-brew";
tag = "v${finalAttrs.version}";
hash = "sha256-auHOKirhRtrYCaKqWeOgRVI+zzVIEGhkkuO290Zh3SA=";
};
vendorHash = "sha256-5gFyfyerRKfq0uGkyIJ1W4XLhyRR5qPyhc/f2Y2skrI=";
subPackages = [ "cmd/bbrew" ];
ldflags = [
"-s"
"-w"
"-X bbrew/internal/services.AppVersion=${finalAttrs.version}"
];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
description = "TUI for managing Homebrew, Flatpak, and Mac App Store packages";
homepage = "https://bold-brew.com";
changelog = "https://github.com/Valkyrie00/bold-brew/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ tyceherrman ];
platforms = lib.platforms.unix;
mainProgram = "bbrew";
};
})
|