teller: init at 1.5.6

This commit is contained in:
wahtique 2023-06-27 21:55:53 +02:00
parent 6e664b0eba
commit f571e9d8d3
No known key found for this signature in database
GPG key ID: 370DD9BE9121F0B3
3 changed files with 79 additions and 0 deletions

View file

@ -17263,6 +17263,15 @@
githubId = 5228243;
name = "waelwindows";
};
wahtique = {
name = "William Veal Phan";
email = "williamvphan@yahoo.fr";
github = "wahtique";
githubId = 55251330;
keys = [{
fingerprint = "9262 E3A7 D129 C4DD A7C1 26CE 370D D9BE 9121 F0B3";
}];
};
waiting-for-dev = {
email = "marc@lamarciana.com";
github = "waiting-for-dev";

View file

@ -0,0 +1,68 @@
{ lib, buildGoModule, fetchFromGitHub, nix-update-script }:
let
pname = "teller";
version = "1.5.6";
date = "2022-10-13";
in
buildGoModule {
inherit pname version;
src = fetchFromGitHub {
owner = "tellerops";
repo = pname;
rev = "v${version}";
hash = "sha256-vgrfWKKXf4C4qkbGiB3ndtJy1VyTx2NJs2QiOSFFZkE=";
};
vendorHash = null;
# use make instead of default checks because e2e does not work with `buildGoDir`
checkPhase = ''
runHook preCheck
# We do not set trimpath for tests, in case they reference test assets
export GOFLAGS=''${GOFLAGS//-trimpath/}
make test
# e2e tests can fail on first try
max_iteration=3
for i in $(seq 1 $max_iteration)
do
make e2e
result=$?
if [[ $result -eq 0 ]]
then
echo "e2e tests passed"
break
else
echo "e2e tests failed, retrying..."
sleep 1
fi
done
if [[ $result -ne 0 ]]
then
echo "e2e tests failed after $max_iteration attempts"
fi
runHook postCheck
'';
passthru.updateScript = nix-update-script { };
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
"-X main.commit=${version}"
"-X main.date=${date}"
];
meta = with lib; {
homepage = "https://github.com/tellerops/teller/";
description = "Cloud native secrets management for developers";
license = licenses.asl20;
maintainers = with maintainers; [ wahtique ];
};
}

View file

@ -17881,6 +17881,8 @@ with pkgs;
phpunit = callPackage ../development/tools/misc/phpunit { };
teller = callPackage ../development/tools/teller { };
### DEVELOPMENT / TOOLS / LANGUAGE-SERVERS
ansible-language-server = callPackage ../development/tools/language-servers/ansible-language-server { };