Skip to content

Commit abaf87f

Browse files
committed
openbao: 2.1.1 -> 2.2.0
1 parent 16fc9ce commit abaf87f

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

pkgs/by-name/op/openbao/package.nix

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,25 @@
22
lib,
33
fetchFromGitHub,
44
buildGoModule,
5+
go_1_24,
56
testers,
67
openbao,
8+
versionCheckHook,
9+
nix-update-script,
710
}:
8-
buildGoModule rec {
11+
12+
buildGoModule.override { go = go_1_24; } rec {
913
pname = "openbao";
10-
version = "2.1.1";
14+
version = "2.2.0";
1115

1216
src = fetchFromGitHub {
1317
owner = "openbao";
1418
repo = "openbao";
15-
rev = "v${version}";
16-
hash = "sha256-viN1Yuqnyg/nrRzV2HkjVGZSWD9QIXLN6nG5N0QtwbU=";
19+
tag = "v${version}";
20+
hash = "sha256-dDMOeAceMaSrF7P4JZ2MKy6zDa10LxCQKkKwu/Q3kOU=";
1721
};
1822

19-
vendorHash = "sha256-dSEFoD2UbY6OejSxPBDxCNKHBoHI8YNnixayIS7z3e8=";
23+
vendorHash = "sha256-zcMc63B/jTUykPfRKvea27xRxjOV+zytaxKOEQAUz1Q=";
2024

2125
proxyVendor = true;
2226

@@ -49,12 +53,23 @@ buildGoModule rec {
4953
version = "v${version}";
5054
};
5155

52-
meta = with lib; {
56+
nativeInstallCheckInputs = [
57+
versionCheckHook
58+
];
59+
versionCheckProgram = "${placeholder "out"}/bin/bao";
60+
versionCheckProgramArg = [ "--version" ];
61+
doInstallCheck = true;
62+
63+
passthru = {
64+
updateScript = nix-update-script { };
65+
};
66+
67+
meta = {
5368
homepage = "https://www.openbao.org/";
5469
description = "Open source, community-driven fork of Vault managed by the Linux Foundation";
5570
changelog = "https://github.com/openbao/openbao/blob/v${version}/CHANGELOG.md";
56-
license = licenses.mpl20;
71+
license = lib.licenses.mpl20;
5772
mainProgram = "bao";
58-
maintainers = with maintainers; [ brianmay ];
73+
maintainers = with lib.maintainers; [ brianmay ];
5974
};
6075
}

0 commit comments

Comments
 (0)