summaryrefslogtreecommitdiff
path: root/pkgs/by-name/ht/httperf/package.nix
blob: 8747acc1169bca8ffc4c4fa360daf2936b96829d (about) (plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
  lib,
  stdenv,
  fetchFromGitHub,
  autoreconfHook,
  openssl,
}:

stdenv.mkDerivation {
  pname = "httperf";
  version = "0.9.1";

  src = fetchFromGitHub {
    repo = "httperf";
    owner = "httperf";
    rev = "3209c7f9b15069d4b79079e03bafba5b444569ff";
    sha256 = "0p48z9bcpdjq3nsarl26f0xbxmqgw42k5qmfy8wv5bcrz6b3na42";
  };

  nativeBuildInputs = [ autoreconfHook ];
  propagatedBuildInputs = [ openssl ];

  configurePhase = ''
    runHook preConfigure

    autoreconf -i
    mkdir -pv build
    cd build
    ../configure

    runHook postConfigure
  '';

  installPhase = ''
    mkdir -vp $out/bin
    mv -v src/httperf $out/bin
  '';

  meta = with lib; {
    description = "HTTP load generator";
    homepage = "https://github.com/httperf/httperf";
    maintainers = [ ];
    license = licenses.gpl2Plus;
    platforms = platforms.all;
    mainProgram = "httperf";
  };

}