blob: 0bc08fb6e3c8ade4897b9d614e56da9f11e75238 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{ lib
, buildGoModule
, fetchFromGitHub
, git
}:
buildGoModule rec {
pname = "log4j-sniffer";
version = "1.8.0";
src = fetchFromGitHub {
owner = "palantir";
repo = pname;
rev = "v${version}";
sha256 = "sha256-NojFXonov/80p+6kimfbiMK/v4najiMe//xFDnOi5KE=";
};
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 ];
};
}
|