blob: fe14a1b2b77cef4e3641f0de47e6e9e1d960ecd3 (
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
|
{ stdenv, fetchFromGitHub, cmake, gtest }:
stdenv.mkDerivation rec {
name = "easyloggingpp-${version}";
version = "9.95.0";
src = fetchFromGitHub {
owner = "muflihun";
repo = "easyloggingpp";
rev = "v${version}";
sha256 = "0gzmznw6ffag9x55lixxffy6x7mvb7691x0md4q9rbh88zkws7kq";
};
nativeBuildInputs = [cmake];
buildInputs = [gtest];
cmakeFlags = [ "-Dtest=ON" "-Dbuild_static_lib=ON"];
NIX_CFLAGS_COMPILE = "-std=c++11" +
stdenv.lib.optionalString stdenv.isLinux " -pthread";
meta = {
description = "C++ logging library";
homepage = https://muflihun.github.io/easyloggingpp/;
license = stdenv.lib.licenses.mit;
maintainers = with stdenv.lib.maintainers; [acowley];
platforms = stdenv.lib.platforms.all;
};
}
|