lol
at 23.05-pre 38 lines 790 B view raw
1{ lib 2, buildGoModule 3, fetchFromGitHub 4}: 5 6buildGoModule rec { 7 pname = "gosec"; 8 version = "2.14.0"; 9 10 src = fetchFromGitHub { 11 owner = "securego"; 12 repo = pname; 13 rev = "v${version}"; 14 sha256 = "sha256-OPMXU24INpdeQrNlRIPJBag6TtHFFIdxlBTfMgRZc2U="; 15 }; 16 17 vendorSha256 = "sha256-F/wtDYPF4qUujU+fJx2v9uwlkxQ1LMPECKxHR4EB1zk="; 18 19 subPackages = [ 20 "cmd/gosec" 21 ]; 22 23 ldflags = [ 24 "-s" 25 "-w" 26 "-X main.Version=${version}" 27 "-X main.GitTag=${src.rev}" 28 "-X main.BuildDate=unknown" 29 ]; 30 31 meta = with lib; { 32 homepage = "https://github.com/securego/gosec"; 33 description = "Golang security checker"; 34 license = licenses.asl20; 35 maintainers = with maintainers; [ kalbasit nilp0inter ]; 36 platforms = platforms.linux ++ platforms.darwin; 37 }; 38}