{ lib, stdenv, fetchFromGitHub, cmake, with_pkgconf? false, }: let meta = with lib; { description = "Tinylog is a lightweight C-language high performance log component for UNIX environment, It is high performance, asynchronized, thread-safe and process-safe log library for C/C++."; homepage = "https://github.com/pymumu/tinylog"; license = lib.licenses.mit; # maintainers = with lib.maintainers; [ matthiasbeyer ]; # mainProgram = "zlog-chk-conf"; platforms = lib.platforms.unix; }; pname = "tlog"; version = "1.0.0"; in stdenv.mkDerivation (finalAttrs: { pname = pname; version = version; src = fetchFromGitHub { owner = "shen390s"; repo = "tinylog"; rev = "master"; hash = "sha256-ZPyzHe8kRSg1Z3MWtsYeIy4ifziWfYf+lnByrTAgqr4="; }; nativeBuildInputs = [ cmake ]; postInstall = '' mkdir -p $out/lib/pkgconfig cat >$out/lib/pkgconfig/tinylog.pc <