2017-07-25 01:02:16 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "backward";
|
2017-07-25 01:02:16 +01:00
|
|
|
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;
|
2021-03-08 14:54:00 +00:00
|
|
|
platforms = platforms.all;
|
2017-07-25 01:02:16 +01:00
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
};
|
|
|
|
}
|