From 50aea6ef03bc8687444b54893837fe8a5c1071ea Mon Sep 17 00:00:00 2001 From: Mikaela Allan Date: Sun, 1 May 2022 15:32:16 +0000 Subject: [PATCH] libxcrypt: prevent build failure on warnings The upstream autoconf build system has a default setting that treats compiler warnings as errors. While this can be useful for development and maintenance it's not ideal for packaging and distribution: newer versions of compilers may detect warnings that previous versions of the compilers failed to detect and cause this package to fail to build. --- pkgs/development/libraries/libxcrypt/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/libxcrypt/default.nix b/pkgs/development/libraries/libxcrypt/default.nix index 8bba9945abf..782655ef5ee 100644 --- a/pkgs/development/libraries/libxcrypt/default.nix +++ b/pkgs/development/libraries/libxcrypt/default.nix @@ -16,6 +16,10 @@ stdenv.mkDerivation rec { ./autogen.sh ''; + configureFlags = [ + "--disable-werror" + ]; + nativeBuildInputs = [ autoconf automake libtool pkg-config perl ]; doCheck = true;