691c823a2e
Semi-automatic update. These checks were done: - built on NixOS - Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.) - found 9.96.1 with grep in /nix/store/ha2fl2l2j3p9lcn6scxn1n50f1vsb5k6-easyloggingpp-9.96.1 - found 9.96.1 in filename of file in /nix/store/ha2fl2l2j3p9lcn6scxn1n50f1vsb5k6-easyloggingpp-9.96.1
32 lines
1.0 KiB
Nix
32 lines
1.0 KiB
Nix
# 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.mkDerivation rec {
|
|
name = "easyloggingpp-${version}";
|
|
version = "9.96.1";
|
|
src = fetchFromGitHub {
|
|
owner = "muflihun";
|
|
repo = "easyloggingpp";
|
|
rev = "v${version}";
|
|
sha256 = "1x5wwm62l1231sgxfwx8mj7fc8452j3f509jyxa9wd2krkpvqxmy";
|
|
};
|
|
|
|
nativeBuildInputs = [cmake];
|
|
buildInputs = [gtest];
|
|
cmakeFlags = [ "-Dtest=ON" ];
|
|
NIX_CFLAGS_COMPILE = "-std=c++11" +
|
|
stdenv.lib.optionalString stdenv.isLinux " -pthread";
|
|
postInstall = ''
|
|
mkdir -p $out/include
|
|
cp ../src/easylogging++.cc $out/include
|
|
'';
|
|
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;
|
|
};
|
|
}
|