Merge pull request #287542 from lorenz/add-tinymembench

tinymembench: init at 0.4

authored by Sandro and committed by GitHub 332a28b1 f0a72af5

+31
+31
pkgs/by-name/ti/tinymembench/package.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + }: 5 + 6 + stdenv.mkDerivation rec { 7 + pname = "tinymembench"; 8 + version = "0.4"; 9 + 10 + src = fetchFromGitHub { 11 + owner = "ssvb"; 12 + repo = "tinymembench"; 13 + rev = "v${version}"; 14 + hash = "sha256-N6jHRLqVSNe+Mk3WNfIEBGtVC7Y6/sERVaeAD68LQJc="; 15 + }; 16 + 17 + installPhase = '' 18 + runHook preInstall 19 + install -D tinymembench $out/bin/tinymembench 20 + runHook postInstall 21 + ''; 22 + 23 + meta = with lib; { 24 + homepage = "https://github.com/ssvb/tinymembench"; 25 + description = "Simple benchmark for memory throughput and latency"; 26 + license = licenses.mit; 27 + platforms = platforms.linux; 28 + mainProgram = "tinymembench"; 29 + maintainers = with maintainers; [ lorenz ]; 30 + }; 31 + }