mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
f281cfe76d
A beautiful stack trace pretty printer for C++
31 lines
687 B
Nix
31 lines
687 B
Nix
{ 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 ];
|
|
};
|
|
}
|