1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "entropy";
9 version = "1.0.7";
10
11 src = fetchFromGitHub {
12 owner = "EwenQuim";
13 repo = "entropy";
14 rev = "v${version}";
15 hash = "sha256-Wj+WSJ2dt4mE0yoMSYIQVNVklBxaTXwP2XND4+76VCI=";
16 };
17
18 vendorHash = "sha256-rELkSYwqfMFX++w6e7/7suzPaB91GhbqFsLaYCeeIm4=";
19
20 meta = {
21 description = "Tool to scan your codebase for high entropy lines, which are often secrets";
22 homepage = "https://github.com/EwenQuim/entropy";
23 license = lib.licenses.mit;
24 maintainers = with lib.maintainers; [ starsep ];
25 mainProgram = "entropy";
26 };
27}