Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 pname = "lzbench"; 5 version = "1.8.1"; 6 7 src = fetchFromGitHub { 8 owner = "inikep"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "19zlvcjb1qg4fx30rrp6m650660y35736j8szvdxmqh9ipkisyia"; 12 }; 13 14 enableParallelBuilding = true; 15 16 installPhase = '' 17 mkdir -p $out/bin 18 cp lzbench $out/bin 19 ''; 20 21 meta = with lib; { 22 inherit (src.meta) homepage; 23 description = "In-memory benchmark of open-source LZ77/LZSS/LZMA compressors"; 24 license = licenses.free; 25 platforms = platforms.all; 26 }; 27}