From b1bf11881a9e2f17c410f5ba8d03756daf71c975 Mon Sep 17 00:00:00 2001 From: obadz Date: Tue, 3 May 2016 22:54:06 +0100 Subject: [PATCH] spdlog: init at 292bdc5 --- pkgs/development/libraries/spdlog/default.nix | 36 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/libraries/spdlog/default.nix diff --git a/pkgs/development/libraries/spdlog/default.nix b/pkgs/development/libraries/spdlog/default.nix new file mode 100644 index 000000000000..1c3952e7adfb --- /dev/null +++ b/pkgs/development/libraries/spdlog/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchFromGitHub, cmake }: + +stdenv.mkDerivation rec { + name = "spdlog-${version}"; + version = stdenv.lib.strings.substring 0 7 rev; + rev = "292bdc5eb4929f183c78d2c67082b715306f81c9"; + + src = fetchFromGitHub { + owner = "gabime"; + repo = "spdlog"; + inherit rev; + sha256 = "1b6b0c81a8hisaibqlzj5mrk3snrfl8p5sqa056q2f02i62zksbn"; + }; + + 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 = []; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ffcbeddfb93f..5f901adb856c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16709,6 +16709,8 @@ in bullet = callPackage ../development/libraries/bullet {}; + spdlog = callPackage ../development/libraries/spdlog { }; + dart = callPackage ../development/interpreters/dart { }; httrack = callPackage ../tools/backup/httrack { };