Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
54 lines
1.0 KiB
Nix
54 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
libowfat,
|
|
libcap,
|
|
zlib,
|
|
openssl,
|
|
libxcrypt,
|
|
}:
|
|
|
|
let
|
|
version = "0.16";
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "gatling";
|
|
inherit version;
|
|
|
|
src = fetchurl {
|
|
url = "https://www.fefe.de/gatling/${pname}-${version}.tar.xz";
|
|
sha256 = "0nrnws5qrl4frqcsfa9z973vv5mifgr9z170qbvg3mq1wa7475jz";
|
|
};
|
|
|
|
buildInputs = [
|
|
libowfat
|
|
libcap
|
|
zlib
|
|
openssl
|
|
libxcrypt
|
|
];
|
|
|
|
configurePhase = ''
|
|
runHook preConfigure
|
|
|
|
substituteInPlace Makefile --replace-fail "/usr/local" "$out"
|
|
substituteInPlace GNUmakefile --replace-fail "/opt/diet" "$out"
|
|
substituteInPlace tryalloca.c --replace-fail "main() {" "int main() {"
|
|
substituteInPlace trysocket.c --replace-fail "main() {" "int main() {"
|
|
|
|
runHook postConfigure
|
|
'';
|
|
|
|
buildPhase = ''
|
|
make gatling
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "High performance web server";
|
|
homepage = "http://www.fefe.de/gatling/";
|
|
license = lib.licenses.gpl2Only;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|