generated from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4d93c7
commit 55505ed
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ]; | ||
}; | ||
} |