Skip to content

Commit

Permalink
wrk: add basic documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Jul 4, 2020
1 parent 55668eb commit af42879
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pkgs/tools/networking/wrk/default.nix
Expand Up @@ -13,9 +13,13 @@ stdenv.mkDerivation rec {


buildInputs = [ luajit openssl perl ]; buildInputs = [ luajit openssl perl ];


makeFlags = [ "WITH_LUAJIT=${luajit}" "WITH_OPENSSL=${openssl.dev}" "VER=${version}" ]; makeFlags = [
"WITH_LUAJIT=${luajit}"
"WITH_OPENSSL=${openssl.dev}"
"VER=${version}"
];


preBuild = '' postPatch = ''
for f in src/*.h; do for f in src/*.h; do
substituteInPlace $f \ substituteInPlace $f \
--replace "#include <luajit-2.0/" "#include <" --replace "#include <luajit-2.0/" "#include <"
Expand All @@ -25,8 +29,8 @@ stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE = "-DluaL_reg=luaL_Reg"; # needed since luajit-2.1.0-beta3 NIX_CFLAGS_COMPILE = "-DluaL_reg=luaL_Reg"; # needed since luajit-2.1.0-beta3


installPhase = '' installPhase = ''
mkdir -p $out/bin install -Dm555 -t $out/bin wrk
cp wrk $out/bin install -Dm444 -t $out/share/doc/${pname} *.md CHANGES SCRIPTING
''; '';


meta = with stdenv.lib; { meta = with stdenv.lib; {
Expand Down

0 comments on commit af42879

Please sign in to comment.