summary refs log tree commit diff
path: root/pkgs/development/libraries/backward-cpp
diff options
context:
space:
mode:
authorCharles Strahan <charles@cstrahan.com>2017-07-24 20:02:16 -0400
committerCharles Strahan <charles@cstrahan.com>2017-08-03 00:38:33 -0400
commitf281cfe76d30a3d1aa26c3c168d367900a995b58 (patch)
treefeb03cdf2e9f2e6ff02b9756224ac0ad74bc50ec /pkgs/development/libraries/backward-cpp
parent958cdf37c1185447e5b1eecb26a700c78f4aa442 (diff)
downloadnixpkgs-f281cfe76d30a3d1aa26c3c168d367900a995b58.tar
nixpkgs-f281cfe76d30a3d1aa26c3c168d367900a995b58.tar.gz
nixpkgs-f281cfe76d30a3d1aa26c3c168d367900a995b58.tar.bz2
nixpkgs-f281cfe76d30a3d1aa26c3c168d367900a995b58.tar.lz
nixpkgs-f281cfe76d30a3d1aa26c3c168d367900a995b58.tar.xz
nixpkgs-f281cfe76d30a3d1aa26c3c168d367900a995b58.tar.zst
nixpkgs-f281cfe76d30a3d1aa26c3c168d367900a995b58.zip
backward: init at 1.3
A beautiful stack trace pretty printer for C++
Diffstat (limited to 'pkgs/development/libraries/backward-cpp')
-rw-r--r--pkgs/development/libraries/backward-cpp/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/libraries/backward-cpp/default.nix b/pkgs/development/libraries/backward-cpp/default.nix
new file mode 100644
index 00000000000..42621a1792c
--- /dev/null
+++ b/pkgs/development/libraries/backward-cpp/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, lib, fetchFromGitHub }:
+
+stdenv.mkDerivation rec {
+  name = "backward-${version}";
+  version = "1.3";
+
+  src = fetchFromGitHub {
+    owner = "bombela";
+    repo = "backward-cpp";
+    rev = "v${version}";
+    sha256 = "1nx77qamal53rq8qxsjzax6ljawb345a1v3cqmfwa0hx26srxcln";
+  };
+
+  installPhase = ''
+    runHook preInstall
+
+    mkdir -p $out/include
+    cp backward.hpp $out/include
+
+    runHook postInstall
+  '';
+
+  meta = with lib; {
+    description = "Beautiful stack trace pretty printer for C++";
+    homepage = "https://github.com/bombela/backward-cpp";
+    license = licenses.mit;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ cstrahan ];
+  };
+}