1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/spdlog/default.nix

36 lines
874 B
Nix
Raw Normal View History

2016-05-03 22:54:06 +01:00
{ stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
name = "spdlog-${version}";
2017-07-25 01:00:03 +01:00
version = "0.13.0";
2016-05-03 22:54:06 +01:00
src = fetchFromGitHub {
owner = "gabime";
repo = "spdlog";
2017-07-25 01:00:03 +01:00
rev = "v${version}";
sha256 = "0pfagrkq6afpkl269vbi1fd6ckakzpr5b5cbapb8rr7hgsrilxza";
2016-05-03 22:54:06 +01:00
};
buildInputs = [ cmake ];
# 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;
# This is a header-only library, no point in hydra building it:
hydraPlatforms = [];
};
}