diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-12-18 10:42:23 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-12-18 10:42:23 +0100 |
commit | 0f7239019de54a1f7860547ba7f341eeb219ad8f (patch) | |
tree | 52825e2904726483f1b7ab1bde32747fd14c69c1 /pkgs/tools/security | |
parent | c2adea7c9c87f2ada37b0a243d0c76a7a3983bb2 (diff) | |
download | nixpkgs-0f7239019de54a1f7860547ba7f341eeb219ad8f.tar nixpkgs-0f7239019de54a1f7860547ba7f341eeb219ad8f.tar.gz nixpkgs-0f7239019de54a1f7860547ba7f341eeb219ad8f.tar.bz2 nixpkgs-0f7239019de54a1f7860547ba7f341eeb219ad8f.tar.lz nixpkgs-0f7239019de54a1f7860547ba7f341eeb219ad8f.tar.xz nixpkgs-0f7239019de54a1f7860547ba7f341eeb219ad8f.tar.zst nixpkgs-0f7239019de54a1f7860547ba7f341eeb219ad8f.zip |
log4j-sniffer: init at 0.4.0
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r-- | pkgs/tools/security/log4j-sniffer/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/tools/security/log4j-sniffer/default.nix b/pkgs/tools/security/log4j-sniffer/default.nix new file mode 100644 index 00000000000..196879c774c --- /dev/null +++ b/pkgs/tools/security/log4j-sniffer/default.nix @@ -0,0 +1,36 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, git +}: + +buildGoModule rec { + pname = "log4j-sniffer"; + version = "0.4.0"; + + src = fetchFromGitHub { + owner = "palantir"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-o2uFO+y2Bni3YtxJDyJ4w3WvKX7lUBFBe7GPBI7OjIg="; + }; + + vendorSha256 = null; + + checkInputs = [ + git + ]; + + preCheck = '' + export HOME=$(mktemp -d); + cd $HOME + git init + ''; + + meta = with lib; { + description = "Tool that scans archives to check for vulnerable log4j versions"; + homepage = "https://github.com/palantir/log4j-sniffer"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ fab ]; + }; +} |