Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 32 lines 753 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation { 8 pname = "tinymembench"; 9 version = "0.4.9-unstable-2017-02-15"; 10 11 src = fetchFromGitHub { 12 owner = "ssvb"; 13 repo = "tinymembench"; 14 rev = "a2cf6d7e382e3aea1eb39173174d9fa28cad15f3"; 15 hash = "sha256-INgvyu7jAA+07vkO9DsIDMcEy713jcnaEx3CI6GTMDA="; 16 }; 17 18 installPhase = '' 19 runHook preInstall 20 install -D tinymembench $out/bin/tinymembench 21 runHook postInstall 22 ''; 23 24 meta = with lib; { 25 homepage = "https://github.com/ssvb/tinymembench"; 26 description = "Simple benchmark for memory throughput and latency"; 27 license = licenses.mit; 28 platforms = platforms.linux; 29 mainProgram = "tinymembench"; 30 maintainers = with maintainers; [ lorenz ]; 31 }; 32}