cliam: init at 1.0.0
This commit is contained in:
parent
69146c5629
commit
ba114515f6
48
pkgs/tools/security/cliam/default.nix
Normal file
48
pkgs/tools/security/cliam/default.nix
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
{ lib
|
||||||
|
, buildGoModule
|
||||||
|
, fetchFromGitHub
|
||||||
|
, installShellFiles
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "cliam";
|
||||||
|
version = "1.0.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "securisec";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-bq7u6pknokyY4WwO1qMYPuY86UZlDgeYEa1AJpk8d+4=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorSha256 = "sha256-aGBA97EvIUv9myqcrtltiVxh1/0VtrQy2j9GU6r197g=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
installShellFiles
|
||||||
|
];
|
||||||
|
|
||||||
|
ldflags = [
|
||||||
|
"-s"
|
||||||
|
"-w"
|
||||||
|
"-X github.com/securisec/cliam/cli/version.Version=${version}"
|
||||||
|
];
|
||||||
|
|
||||||
|
postBuild = ''
|
||||||
|
# should be called cliam
|
||||||
|
mv $GOPATH/bin/{cli,cliam}
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
installShellCompletion --cmd cliam \
|
||||||
|
--bash <($out/bin/cliam completion bash) \
|
||||||
|
--fish <($out/bin/cliam completion fish) \
|
||||||
|
--zsh <($out/bin/cliam completion zsh)
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Cloud agnostic IAM permissions enumerator";
|
||||||
|
homepage = "https://github.com/securisec/cliam";
|
||||||
|
license = licenses.gpl3Only;
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
@ -2964,6 +2964,8 @@ with pkgs;
|
|||||||
|
|
||||||
cli-visualizer = callPackage ../applications/misc/cli-visualizer { };
|
cli-visualizer = callPackage ../applications/misc/cli-visualizer { };
|
||||||
|
|
||||||
|
cliam = callPackage ../tools/security/cliam { };
|
||||||
|
|
||||||
clickclack = callPackage ../tools/misc/clickclack { };
|
clickclack = callPackage ../tools/misc/clickclack { };
|
||||||
|
|
||||||
clickgen = with python3Packages; toPythonApplication clickgen;
|
clickgen = with python3Packages; toPythonApplication clickgen;
|
||||||
|
Loading…
Reference in New Issue
Block a user