Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 pname = "backward"; 5 version = "1.6"; 6 7 src = fetchFromGitHub { 8 owner = "bombela"; 9 repo = "backward-cpp"; 10 rev = "v${version}"; 11 sha256 = "sha256-2k5PjwFxgA/2XPqJrPHxgSInM61FBEcieppBx+MAUKw="; 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.all; 28 maintainers = with maintainers; [ cstrahan ]; 29 }; 30}