Commit 49ec58bd authored by Andreas Wiese's avatar Andreas Wiese
Browse files

gatling: fix undefined reference to 'crypt'

ff30c899 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
parent 35f080bb
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
{ lib, stdenv, fetchurl, libowfat, libcap, zlib, openssl }:
{ lib, stdenv, fetchurl, libowfat, libcap, zlib, openssl, libxcrypt }:

let
  version = "0.16";
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
    sha256 = "0nrnws5qrl4frqcsfa9z973vv5mifgr9z170qbvg3mq1wa7475jz";
  };

  buildInputs = [ libowfat libcap zlib openssl.dev ];
  buildInputs = [ libowfat libcap zlib openssl libxcrypt ];

  configurePhase = ''
    substituteInPlace Makefile --replace "/usr/local" "$out"
@@ -28,6 +28,5 @@ stdenv.mkDerivation rec {
    homepage = "http://www.fefe.de/gatling/";
    license = lib.licenses.gpl2;
    platforms = platforms.linux;
    broken = true; # 2022-11-16
  };
}