mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
24 lines
768 B
Nix
24 lines
768 B
Nix
|
{ 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;
|
||
|
};
|
||
|
}
|