2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2023-07-11 11:01:25 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "plog";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.1.10";
|
2023-07-11 11:01:25 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2023-07-11 11:01:25 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SergiusTheBest";
|
2023-07-15 17:15:38 +00:00
|
|
|
repo = pname;
|
2023-07-11 11:01:25 +00:00
|
|
|
rev = version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-NZphrg9OB1FTY2ifu76AXeCyGwW2a2BkxMGjZPf4uM8=";
|
2023-07-11 11:01:25 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DPLOG_BUILD_SAMPLES=NO"
|
|
|
|
];
|
2023-07-11 11:01:25 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Portable, simple and extensible C++ logging library";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/SergiusTheBest/plog";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
maintainers = with maintainers; [ raphaelr erdnaxe ];
|
2023-07-11 11:01:25 +00:00
|
|
|
};
|
|
|
|
}
|