mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-17 22:28:55 +00:00
bbrew: init at 2.3.1
Adds Bold Brew, a TUI for managing Homebrew, Flatpak, and Mac App Store packages. Homepage: https://bold-brew.com Assisted-by: OpenAI Codex (GPT-5)
This commit is contained in:
45
pkgs/by-name/bb/bbrew/package.nix
Normal file
45
pkgs/by-name/bb/bbrew/package.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "bbrew";
|
||||
version = "2.3.1";
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Valkyrie00";
|
||||
repo = "bold-brew";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-g74rBvBlw/rlLmZdJtIeIp0sba0Q6kFyhlHTwegOA+0=";
|
||||
};
|
||||
|
||||
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";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user