about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/ti/tinymembench/package.nix
blob: 3cb444ed334c052d59798d6482f678ac234071e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ 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 ];
  };
}