Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / backward-cpp / default.nix
blob15556a4108c67bc3fc0c4cedfc11e3b017b39e1b
1 { stdenv, lib, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
4   pname = "backward";
5   version = "1.6";
7   src = fetchFromGitHub {
8     owner = "bombela";
9     repo = "backward-cpp";
10     rev = "v${version}";
11     sha256 = "sha256-2k5PjwFxgA/2XPqJrPHxgSInM61FBEcieppBx+MAUKw=";
12   };
14   installPhase = ''
15     runHook preInstall
17     mkdir -p $out/include
18     cp backward.hpp $out/include
20     runHook postInstall
21   '';
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.all;
28     maintainers = with maintainers; [ ];
29   };