Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 32 lines 922 B view raw
1{ lib, stdenv, fetchFromGitHub, fetchpatch }: 2 3stdenv.mkDerivation rec { 4 version = "1.2.17"; 5 pname = "zlog"; 6 7 src = fetchFromGitHub { 8 owner = "HardySimpson"; 9 repo = pname; 10 rev = version; 11 sha256 = "sha256-ckpDMRLxObpl8N539DC5u2bPpmD7jM+KugurUfta6tg="; 12 }; 13 14 patches = [ 15 (fetchpatch { 16 name = "CVE-2024-22857.patch"; 17 url = "https://github.com/HardySimpson/zlog/commit/c47f781a9f1e9604f5201e27d046d925d0d48ac4.patch"; 18 hash = "sha256-3FAAHJ2R/OpNpErWXptjEh0x370/jzvK2VhuUuyaOjE="; 19 }) 20 ]; 21 22 makeFlags = [ "PREFIX=${placeholder "out"}" ]; 23 24 meta = with lib; { 25 description= "Reliable, high-performance, thread safe, flexible, clear-model, pure C logging library"; 26 homepage = "https://hardysimpson.github.io/zlog/"; 27 license = licenses.lgpl21; 28 maintainers = [ maintainers.matthiasbeyer ]; 29 mainProgram = "zlog-chk-conf"; 30 platforms = platforms.unix; 31 }; 32}