nixpkgs/pkgs/development/libraries/easyloggingpp/default.nix
R. RyanTM 75d80d6cd1 easyloggingpp: 9.96.1 -> 9.96.2
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/easyloggingpp/versions.

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.2 with grep in /nix/store/b1cczf98rkjasl6qwjbzhgns4jy025px-easyloggingpp-9.96.2
- directory tree listing: https://gist.github.com/be5c17c733361d9cd681055de44e8424
2018-03-31 11:23:44 -07:00

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.2";
src = fetchFromGitHub {
owner = "muflihun";
repo = "easyloggingpp";
rev = "v${version}";
sha256 = "0qhf93i2ks9v6rk6n4v3fn7xrkqdwgs6rm6wd0gx9sm2wlq4ancd";
};
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;
};
}