depot/third_party/nixpkgs/pkgs/development/libraries/termbench-pro/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

34 lines
798 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, fmt }:
stdenv.mkDerivation {
pname = "termbench-pro";
version = "unstable-2023-01-26";
src = fetchFromGitHub {
owner = "contour-terminal";
repo = "termbench-pro";
rev = "a4feadd3a698e4fe2d9dd5b03d5f941534a25a91";
hash = "sha256-/zpJY9Mecalk7dneYZYzmFOroopFGklWw62a+LbiUVs=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ fmt ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
mkdir -p $out/lib
mv termbenchpro/tbp $out/bin
mv libtermbench/libtermbench.a $out/lib
runHook postInstall
'';
meta = with lib; {
description = "Terminal Benchmarking as CLI and library";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ moni ];
};
}