From 742c4b07746acb52693b0d74e6b04428b79827dd Mon Sep 17 00:00:00 2001 From: Filip Czaplicki Date: Wed, 5 Jun 2024 19:49:49 +0200 Subject: [PATCH] entropy: init at 1.0.7 Co-authored-by: Arne Keller --- pkgs/by-name/en/entropy/package.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pkgs/by-name/en/entropy/package.nix diff --git a/pkgs/by-name/en/entropy/package.nix b/pkgs/by-name/en/entropy/package.nix new file mode 100644 index 000000000000..8d2315b565ad --- /dev/null +++ b/pkgs/by-name/en/entropy/package.nix @@ -0,0 +1,27 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: + +buildGoModule rec { + pname = "entropy"; + version = "1.0.7"; + + src = fetchFromGitHub { + owner = "EwenQuim"; + repo = "entropy"; + rev = "v${version}"; + hash = "sha256-Wj+WSJ2dt4mE0yoMSYIQVNVklBxaTXwP2XND4+76VCI="; + }; + + vendorHash = "sha256-rELkSYwqfMFX++w6e7/7suzPaB91GhbqFsLaYCeeIm4="; + + meta = { + description = "Tool to scan your codebase for high entropy lines, which are often secrets"; + homepage = "https://github.com/EwenQuim/entropy"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ starsep ]; + mainProgram = "entropy"; + }; +}