summary refs log tree commit diff
path: root/pkgs/development/libraries/libxcrypt/default.nix
blob: 4df5bde228713263733d10f7ffcefd03476e4fec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, pkg-config, perl }:

stdenv.mkDerivation rec {
  pname = "libxcrypt";
  version = "4.4.18";

  src = fetchFromGitHub {
    owner = "besser82";
    repo = "libxcrypt";
    rev = "v${version}";
    sha256 = "4015bf1b3a2aab31da5a544424be36c1a0f0ffc1eaa219c0e7b048e4cdcbbfe1";
  };

  preConfigure = ''
    patchShebangs autogen.sh
    ./autogen.sh
  '';

  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;
  };
}