Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openbao: init at 2.0.3 #354366

Merged
merged 2 commits into from
Dec 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3198,6 +3198,13 @@
githubId = 355401;
name = "Brian Hicks";
};
brianmay = {
name = "Brian May";
email = "[email protected]";
github = "brianmay";
githubId = 112729;
keys = [ { fingerprint = "D636 5126 A92D B560 C627 ACED 1784 577F 811F 6EAC"; } ];
brianmay marked this conversation as resolved.
Show resolved Hide resolved
};
brianmcgee = {
name = "Brian McGee";
email = "[email protected]";
Expand Down
60 changes: 60 additions & 0 deletions pkgs/by-name/op/openbao/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
lib,
fetchFromGitHub,
buildGoModule,
testers,
openbao,
}:
buildGoModule rec {
pname = "openbao";
version = "2.1.0";

src = fetchFromGitHub {
owner = "openbao";
repo = "openbao";
rev = "v${version}";
hash = "sha256-QzUNb4T9uau9bWZX6ulUDyfdInGd86iClBAG72C+7mo=";
};

vendorHash = "sha256-Lg58NbwO7vLNRCBwJujcoVcrV018FevvdrUassnAg3k=";

proxyVendor = true;

subPackages = [ "." ];

tags = [
"openbao"
"bao"
];

ldflags = [
"-s"
"-w"
"-X github.com/openbao/openbao/version.GitCommit=${src.rev}"
"-X github.com/openbao/openbao/version.fullVersion=${version}"
];

postInstall = ''
mv $out/bin/openbao $out/bin/bao
'';
wolfgangwalther marked this conversation as resolved.
Show resolved Hide resolved

# TODO: Enable the NixOS tests after adding OpenBao as a NixOS service in an upcoming PR and
# adding NixOS tests
#
# passthru.tests = { inherit (nixosTests) vault vault-postgresql vault-dev vault-agent; };

passthru.tests.version = testers.testVersion {
package = openbao;
command = "HOME=$(mktemp -d) bao --version";
version = "v${version}";
};

meta = with lib; {
homepage = "https://www.openbao.org/";
description = "Open source, community-driven fork of Vault managed by the Linux Foundation";
changelog = "https://github.com/openbao/openbao/blob/v${version}/CHANGELOG.md";
license = licenses.mpl20;
mainProgram = "bao";
maintainers = with maintainers; [ brianmay ];
};
}
Loading