This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
33 lines
755 B
Nix
33 lines
755 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "tinymembench";
|
|
version = "0.4.9-unstable-2017-02-15";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ssvb";
|
|
repo = "tinymembench";
|
|
rev = "a2cf6d7e382e3aea1eb39173174d9fa28cad15f3";
|
|
hash = "sha256-INgvyu7jAA+07vkO9DsIDMcEy713jcnaEx3CI6GTMDA=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -D tinymembench $out/bin/tinymembench
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/ssvb/tinymembench";
|
|
description = "Simple benchmark for memory throughput and latency";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "tinymembench";
|
|
maintainers = with lib.maintainers; [ lorenz ];
|
|
};
|
|
}
|