3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/spdlog/default.nix

33 lines
792 B
Nix
Raw Normal View History

2016-05-03 22:54:06 +01:00
{ stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
name = "spdlog-${version}";
2017-10-12 05:40:12 +01:00
version = "0.14.0";
2016-05-03 22:54:06 +01:00
src = fetchFromGitHub {
2017-10-12 05:40:12 +01:00
owner = "gabime";
repo = "spdlog";
rev = "v${version}";
sha256 = "13730429gwlabi432ilpnja3sfvy0nn2719vnhhmii34xcdyc57q";
2016-05-03 22:54:06 +01:00
};
2017-10-12 05:40:12 +01:00
nativeBuildInputs = [ cmake ];
2016-05-03 22:54:06 +01:00
# cmakeFlags = [ "-DSPDLOG_BUILD_EXAMPLES=ON" ];
outputs = [ "out" "doc" ];
postInstall = ''
mkdir -p $out/share/doc/spdlog
cp -rv ../example $out/share/doc/spdlog
'';
meta = with stdenv.lib; {
description = "Very fast, header only, C++ logging library.";
homepage = https://github.com/gabime/spdlog;
license = licenses.mit;
maintainers = with maintainers; [ obadz ];
platforms = platforms.all;
};
}