Merge pull request #30337 from acowley/easyloggingpp-init

easyloggingpp: 9.95.0 -> 9.96.0
This commit is contained in:
Jörg Thalheim 2018-02-23 12:12:06 +00:00 committed by GitHub
commit 4ec94f679c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,18 +1,26 @@
# To use this package with a CMake and pkg-config build:
# pkg_check_modules(EASYLOGGINGPP REQUIRED easyloggingpp)
# add_executable(main src/main.cpp ${EASYLOGGINGPP_PREFIX}/include/easylogging++.cc)
{ stdenv, fetchFromGitHub, cmake, gtest }: { stdenv, fetchFromGitHub, cmake, gtest }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "easyloggingpp-${version}"; name = "easyloggingpp-${version}";
version = "9.95.0"; version = "9.96.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "muflihun"; owner = "muflihun";
repo = "easyloggingpp"; repo = "easyloggingpp";
rev = "v${version}"; rev = "v${version}";
sha256 = "0gzmznw6ffag9x55lixxffy6x7mvb7691x0md4q9rbh88zkws7kq"; sha256 = "134arh13rksfsxa80h6xw104458ihzp1mpblz5sprx5gxkq7yqfv";
}; };
nativeBuildInputs = [cmake]; nativeBuildInputs = [cmake];
buildInputs = [gtest]; buildInputs = [gtest];
cmakeFlags = [ "-Dtest=ON" "-Dbuild_static_lib=ON"]; cmakeFlags = [ "-Dtest=ON" ];
NIX_CFLAGS_COMPILE = "-std=c++11" + NIX_CFLAGS_COMPILE = "-std=c++11" +
stdenv.lib.optionalString stdenv.isLinux " -pthread"; stdenv.lib.optionalString stdenv.isLinux " -pthread";
postInstall = ''
mkdir -p $out/include
cp ../src/easylogging++.cc $out/include
'';
meta = { meta = {
description = "C++ logging library"; description = "C++ logging library";
homepage = https://muflihun.github.io/easyloggingpp/; homepage = https://muflihun.github.io/easyloggingpp/;