2021-01-25 08:26:54 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib, patchResolver ? true }:
|
2020-06-29 14:59:47 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "summon";
|
|
|
|
version = "0.8.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cyberark";
|
|
|
|
repo = "summon";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1z4xnrncwvp3rfm97zvc0ivvw2fh1hrjhj3rplvidzxjfyasbvwv";
|
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = "1597vrs4b7k6gkmkvf7xnd38rvjixmlcz0j7npmik9nbkm57l74m";
|
|
|
|
|
|
|
|
subPackages = [ "cmd" ];
|
|
|
|
|
|
|
|
# Patches provider resolver to support resolving unqualified names
|
|
|
|
# from $PATH, e.g. `summon -p gopass` instead of `summon -p $(which gopass)`
|
2023-01-26 17:31:02 +00:00
|
|
|
patches = lib.optionals patchResolver [ ./resolve-paths.patch ];
|
2020-06-29 14:59:47 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/cmd $out/bin/summon
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description =
|
|
|
|
"CLI that provides on-demand secrets access for common DevOps tools";
|
|
|
|
homepage = "https://cyberark.github.io/summon";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with maintainers; [ quentini ];
|
|
|
|
};
|
|
|
|
}
|