nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 34 lines 828 B view raw
1{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, pkg-config, perl }: 2 3stdenv.mkDerivation rec { 4 pname = "libxcrypt"; 5 version = "4.4.28"; 6 7 src = fetchFromGitHub { 8 owner = "besser82"; 9 repo = "libxcrypt"; 10 rev = "v${version}"; 11 sha256 = "sha256-Ohf+RCOXnoCxAFnXXV9e2TCqpfZziQl+FGJTGDSQTF0="; 12 }; 13 14 preConfigure = '' 15 patchShebangs autogen.sh 16 ./autogen.sh 17 ''; 18 19 configureFlags = [ 20 "--disable-werror" 21 ]; 22 23 nativeBuildInputs = [ autoconf automake libtool pkg-config perl ]; 24 25 doCheck = true; 26 27 meta = with lib; { 28 description = "Extended crypt library for descrypt, md5crypt, bcrypt, and others"; 29 homepage = "https://github.com/besser82/libxcrypt/"; 30 platforms = platforms.all; 31 maintainers = with maintainers; [ dottedmag ]; 32 license = licenses.lgpl21Plus; 33 }; 34}