From dd159fd21ae9f0005226198920524fe30acb90bb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 22 Apr 2024 23:02:37 +0200 Subject: [PATCH] trivy: format with nixfmt --- pkgs/tools/admin/trivy/default.nix | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/pkgs/tools/admin/trivy/default.nix b/pkgs/tools/admin/trivy/default.nix index 2e6cdcee433a..f29cf3b0046f 100644 --- a/pkgs/tools/admin/trivy/default.nix +++ b/pkgs/tools/admin/trivy/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, buildPackages -, buildGoModule -, fetchFromGitHub -, installShellFiles -, testers -, trivy +{ + lib, + stdenv, + buildPackages, + buildGoModule, + fetchFromGitHub, + installShellFiles, + testers, + trivy, }: buildGoModule rec { @@ -14,7 +15,7 @@ buildGoModule rec { src = fetchFromGitHub { owner = "aquasecurity"; - repo = pname; + repo = "trivy"; rev = "refs/tags/v${version}"; hash = "sha256-0FV67+m09PCkPZfnkepkvBA4mFYIkJSMT5v0tDwalW8="; }; @@ -39,7 +40,11 @@ buildGoModule rec { postInstall = let - trivy = if stdenv.buildPlatform.canExecute stdenv.hostPlatform then placeholder "out" else buildPackages.trivy; + trivy = + if stdenv.buildPlatform.canExecute stdenv.hostPlatform then + placeholder "out" + else + buildPackages.trivy; in '' installShellCompletion --cmd trivy \ @@ -69,6 +74,9 @@ buildGoModule rec { ''; mainProgram = "trivy"; license = licenses.asl20; - maintainers = with maintainers; [ fab jk ]; + maintainers = with maintainers; [ + fab + jk + ]; }; }