1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00
nixpkgs/pkgs/tools/networking/httperf/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

38 lines
826 B
Nix

{ stdenv, fetchFromGitHub, autoreconfHook, openssl }:
stdenv.mkDerivation rec {
pname = "httperf";
version = "0.9.1";
src = fetchFromGitHub {
repo = pname;
owner = pname;
rev = "3209c7f9b15069d4b79079e03bafba5b444569ff";
sha256 = "0p48z9bcpdjq3nsarl26f0xbxmqgw42k5qmfy8wv5bcrz6b3na42";
};
nativeBuildInputs = [ autoreconfHook ];
propagatedBuildInputs = [ openssl ];
configurePhase = ''
autoreconf -i
mkdir -pv build
cd build
../configure
'';
installPhase = ''
mkdir -vp $out/bin
mv -v src/httperf $out/bin
'';
meta = with stdenv.lib; {
description = "The httperf HTTP load generator";
homepage = https://github.com/httperf/httperf;
maintainers = with maintainers; [ nand0p ];
license = licenses.gpl2;
platforms = platforms.linux;
};
}