mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 12:11:28 +00:00
termbench-pro: init at unstable-2023-01-26
This commit is contained in:
parent
8f5dd15a66
commit
9041c780be
34
pkgs/development/libraries/termbench-pro/default.nix
Normal file
34
pkgs/development/libraries/termbench-pro/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
{ 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 ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue