@@ -0,0 +1,30 @@
1+{ stdenv, lib, fetchFromGitHub }:
2+
3+stdenv.mkDerivation rec {
4+ name = "backward-${version}";
5+ version = "1.3";
6+
7+ src = fetchFromGitHub {
8+ owner = "bombela";
9+ repo = "backward-cpp";
10+ rev = "v${version}";
11+ sha256 = "1nx77qamal53rq8qxsjzax6ljawb345a1v3cqmfwa0hx26srxcln";
12+ };
13+
14+ installPhase = ''
15+ runHook preInstall
16+
17+ mkdir -p $out/include
18+ cp backward.hpp $out/include
19+
20+ runHook postInstall
21+ '';
22+
23+ meta = with lib; {
24+ description = "Beautiful stack trace pretty printer for C++";
25+ homepage = "https://github.com/bombela/backward-cpp";
26+ license = licenses.mit;
27+ platforms = platforms.linux;
28+ maintainers = with maintainers; [ cstrahan ];
29+ };
30+}