blob: 82c08b46bc8ba290a2579c51dd6ea323e065415f (
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
|
{ lib, stdenv, fetchFromGitHub, fetchpatch }:
stdenv.mkDerivation rec {
version = "1.2.15";
pname = "zlog";
src = fetchFromGitHub {
owner = "HardySimpson";
repo = pname;
rev = version;
sha256 = "10hzifgpml7jm43y6v8c8q0cr9ziyx9qxznafxyw6glhnlqnb7pb";
};
patches = [
(fetchpatch {
name = "CVE-2021-43521.patch";
url = "https://github.com/HardySimpson/zlog/commit/a5be8b3a8ddc498de4ad041757285136a55d97e3.patch";
sha256 = "sha256-igHXUHN2Ke8Gb5AeDrDwG2aUNRpispgqVlGuASute+8=";
})
];
makeFlags = [ "PREFIX=${placeholder "out"}" ];
meta = with lib; {
description= "Reliable, high-performance, thread safe, flexible, clear-model, pure C logging library";
homepage = "https://hardysimpson.github.io/zlog/";
license = licenses.lgpl21;
maintainers = [ maintainers.matthiasbeyer ];
mainProgram = "zlog-chk-conf";
platforms = platforms.unix;
};
}
|