teller: init at 1.5.6
This commit is contained in:
parent
6e664b0eba
commit
f571e9d8d3
3 changed files with 79 additions and 0 deletions
|
@ -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";
|
||||
|
|
68
pkgs/development/tools/teller/default.nix
Normal file
68
pkgs/development/tools/teller/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue