nixpkgs-suyu/pkgs/development/libraries/spdlog/default.nix

33 lines
792 B
Nix
Raw Normal View History

2016-05-03 23:54:06 +02:00
{ stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
name = "spdlog-${version}";
2017-10-12 06:40:12 +02:00
version = "0.14.0";
2016-05-03 23:54:06 +02:00
src = fetchFromGitHub {
2017-10-12 06:40:12 +02:00
owner = "gabime";
repo = "spdlog";
rev = "v${version}";
sha256 = "13730429gwlabi432ilpnja3sfvy0nn2719vnhhmii34xcdyc57q";
2016-05-03 23:54:06 +02:00
};
2017-10-12 06:40:12 +02:00
nativeBuildInputs = [ cmake ];
2016-05-03 23:54:06 +02: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;
};
}