Skip to content

Commit

Permalink
perf-cpp: init at 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
foolnotion committed Sep 16, 2024
1 parent f4d93c7 commit 55505ed
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@

pegtl = pkgs.callPackage ./pkgs/pegtl { };

perf-cpp = pkgs.callPackage ./pkgs/perf-cpp { };

pmlb = pkgs.python3Packages.callPackage ./pkgs/pmlb { };

q5go = pkgs.libsForQt5.callPackage ./pkgs/q5go { };
Expand Down
30 changes: 30 additions & 0 deletions pkgs/perf-cpp/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, buildShared ? !stdenv.hostPlatform.isStatic
}:

stdenv.mkDerivation rec {
pname = "perf-cpp";
version = "0.6.0";

src = fetchFromGitHub {
owner = "foolnotion";
repo = "perf-cpp";
rev = "d08b7705255f32af063d846050473a003f7bd126";
hash = "sha256-mbyvneFFb8TxYON2MTWC8QYhlZabxIW31zEeE1dBTw0=";
};

nativeBuildInputs = [ cmake ];

cmakeFlags = [ "-DCMAKE_INSTALL_LIBDIR=lib" ] ++ lib.optional buildShared "-DBUILD_SHARED_LIBS=ON";

meta = with lib; {
description = "C++ library to make performance analysis more intuitive and focused";
homepage = "https://github.com/jmuehlig/perf-cpp";
license = licenses.mit;
platforms = platforms.all;
#maintainers = with maintainers; [ foolnotion ];
};
}

0 comments on commit 55505ed

Please sign in to comment.