nixpkgs/pkgs/development/libraries/libxcrypt/default.nix
Mikaela Allan 50aea6ef03 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.
2022-05-01 15:32:16 +00:00

34 lines
828 B
Nix

{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, pkg-config, perl }:
stdenv.mkDerivation rec {
pname = "libxcrypt";
version = "4.4.28";
src = fetchFromGitHub {
owner = "besser82";
repo = "libxcrypt";
rev = "v${version}";
sha256 = "sha256-Ohf+RCOXnoCxAFnXXV9e2TCqpfZziQl+FGJTGDSQTF0=";
};
preConfigure = ''
patchShebangs autogen.sh
./autogen.sh
'';
configureFlags = [
"--disable-werror"
];
nativeBuildInputs = [ autoconf automake libtool pkg-config perl ];
doCheck = true;
meta = with lib; {
description = "Extended crypt library for descrypt, md5crypt, bcrypt, and others";
homepage = "https://github.com/besser82/libxcrypt/";
platforms = platforms.all;
maintainers = with maintainers; [ dottedmag ];
license = licenses.lgpl21Plus;
};
}