Skip to content
Permalink
Browse files

wrk: add basic documentation

  • Loading branch information
peterhoeg committed Jul 4, 2020
1 parent 55668eb commit af428798e3038afe826f449f925584615ca27039
Showing with 8 additions and 4 deletions.
  1. +8 −4 pkgs/tools/networking/wrk/default.nix
@@ -13,9 +13,13 @@ stdenv.mkDerivation rec {

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
substituteInPlace $f \
--replace "#include <luajit-2.0/" "#include <"
@@ -25,8 +29,8 @@ stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE = "-DluaL_reg=luaL_Reg"; # needed since luajit-2.1.0-beta3

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

meta = with stdenv.lib; {

0 comments on commit af42879

Please sign in to comment.
You can’t perform that action at this time.