backward-cpp: use cmake as a build system

This commit is contained in:
Petr Hodina 2025-05-01 18:32:05 +02:00
parent a347c07ab8
commit 6576844fb3

View File

@ -2,33 +2,29 @@
stdenv, stdenv,
lib, lib,
fetchFromGitHub, fetchFromGitHub,
cmake,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "backward"; pname = "backward";
version = "1.6"; version = "1.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bombela"; owner = "bombela";
repo = "backward-cpp"; repo = "backward-cpp";
rev = "v${version}"; rev = "v${finalAttrs.version}";
sha256 = "sha256-2k5PjwFxgA/2XPqJrPHxgSInM61FBEcieppBx+MAUKw="; sha256 = "sha256-2k5PjwFxgA/2XPqJrPHxgSInM61FBEcieppBx+MAUKw=";
}; };
installPhase = '' nativeBuildInputs = [
runHook preInstall cmake
];
mkdir -p $out/include meta = {
cp backward.hpp $out/include
runHook postInstall
'';
meta = with lib; {
description = "Beautiful stack trace pretty printer for C++"; description = "Beautiful stack trace pretty printer for C++";
homepage = "https://github.com/bombela/backward-cpp"; homepage = "https://github.com/bombela/backward-cpp";
license = licenses.mit; license = lib.licenses.mit;
platforms = platforms.all; platforms = lib.platforms.all;
maintainers = [ ]; maintainers = with lib.maintainers; [ ];
}; };
} })