Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 48 lines 896 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 openssl, 7}: 8 9stdenv.mkDerivation { 10 pname = "httperf"; 11 version = "0.9.1"; 12 13 src = fetchFromGitHub { 14 repo = "httperf"; 15 owner = "httperf"; 16 rev = "3209c7f9b15069d4b79079e03bafba5b444569ff"; 17 sha256 = "0p48z9bcpdjq3nsarl26f0xbxmqgw42k5qmfy8wv5bcrz6b3na42"; 18 }; 19 20 nativeBuildInputs = [ autoreconfHook ]; 21 propagatedBuildInputs = [ openssl ]; 22 23 configurePhase = '' 24 runHook preConfigure 25 26 autoreconf -i 27 mkdir -pv build 28 cd build 29 ../configure 30 31 runHook postConfigure 32 ''; 33 34 installPhase = '' 35 mkdir -vp $out/bin 36 mv -v src/httperf $out/bin 37 ''; 38 39 meta = with lib; { 40 description = "Httperf HTTP load generator"; 41 homepage = "https://github.com/httperf/httperf"; 42 maintainers = [ ]; 43 license = licenses.gpl2Plus; 44 platforms = platforms.all; 45 mainProgram = "httperf"; 46 }; 47 48}