1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "plog";
10 version = "1.1.10";
11
12 outputs = [
13 "out"
14 "dev"
15 ];
16
17 src = fetchFromGitHub {
18 owner = "SergiusTheBest";
19 repo = "plog";
20 rev = version;
21 hash = "sha256-NZphrg9OB1FTY2ifu76AXeCyGwW2a2BkxMGjZPf4uM8=";
22 };
23
24 strictDeps = true;
25 nativeBuildInputs = [
26 cmake
27 ];
28
29 cmakeFlags = [
30 "-DPLOG_BUILD_SAMPLES=NO"
31 ];
32
33 meta = with lib; {
34 description = "Portable, simple and extensible C++ logging library";
35 homepage = "https://github.com/SergiusTheBest/plog";
36 license = licenses.mit;
37 platforms = platforms.linux ++ platforms.darwin;
38 maintainers = with maintainers; [
39 raphaelr
40 erdnaxe
41 ];
42 };
43}