summary refs log tree commit diff
path: root/pkgs/development/libraries/spdlog
diff options
context:
space:
mode:
authorobadz <git@obadz.com>2016-05-03 22:54:06 +0100
committerobadz <git@obadz.com>2016-05-03 23:05:37 +0100
commitb1bf11881a9e2f17c410f5ba8d03756daf71c975 (patch)
tree0d0f6e5028f46aa18b7ea25a8eb0673463eec55d /pkgs/development/libraries/spdlog
parentdb3ee01ab632cd923b14d0ce2a55229aa2483f3c (diff)
downloadnixpkgs-b1bf11881a9e2f17c410f5ba8d03756daf71c975.tar
nixpkgs-b1bf11881a9e2f17c410f5ba8d03756daf71c975.tar.gz
nixpkgs-b1bf11881a9e2f17c410f5ba8d03756daf71c975.tar.bz2
nixpkgs-b1bf11881a9e2f17c410f5ba8d03756daf71c975.tar.lz
nixpkgs-b1bf11881a9e2f17c410f5ba8d03756daf71c975.tar.xz
nixpkgs-b1bf11881a9e2f17c410f5ba8d03756daf71c975.tar.zst
nixpkgs-b1bf11881a9e2f17c410f5ba8d03756daf71c975.zip
spdlog: init at 292bdc5
Diffstat (limited to 'pkgs/development/libraries/spdlog')
-rw-r--r--pkgs/development/libraries/spdlog/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/libraries/spdlog/default.nix b/pkgs/development/libraries/spdlog/default.nix
new file mode 100644
index 00000000000..1c3952e7adf
--- /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 = [];
+  };
+}