nixpkgs/pkgs/servers/http/gatling/default.nix
Andreas Wiese 49ec58bd1c gatling: fix undefined reference to 'crypt'
ff30c899d8 made libcrypt support optional (and off-by-default) in
glibc, which requires all packages still using it to depend on
libxcrypt.

See also https://github.com/NixOS/nixpkgs/pull/181764
2022-11-30 01:03:34 +01:00

33 lines
775 B
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 = ''
substituteInPlace Makefile --replace "/usr/local" "$out"
substituteInPlace GNUmakefile --replace "/opt/diet" "$out"
'';
buildPhase = ''
make gatling
'';
meta = with lib; {
description = "A high performance web server";
homepage = "http://www.fefe.de/gatling/";
license = lib.licenses.gpl2;
platforms = platforms.linux;
};
}