587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
31 lines
701 B
Nix
31 lines
701 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tinymembench";
|
|
version = "0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ssvb";
|
|
repo = "tinymembench";
|
|
rev = "v${version}";
|
|
hash = "sha256-N6jHRLqVSNe+Mk3WNfIEBGtVC7Y6/sERVaeAD68LQJc=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -D tinymembench $out/bin/tinymembench
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/ssvb/tinymembench";
|
|
description = "Simple benchmark for memory throughput and latency";
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
mainProgram = "tinymembench";
|
|
maintainers = with maintainers; [ lorenz ];
|
|
};
|
|
}
|