Merge pull request #143661 from amarshall/mkpasswd-libcrypt

mkpasswd: Include support for more hash methods
This commit is contained in:
Janne Heß 2021-11-05 00:53:40 +01:00 committed by GitHub
commit 7d40866ac5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,13 +1,14 @@
{ lib, stdenv, whois, perl }:
{ lib, stdenv, whois, libxcrypt, perl, pkg-config }:
stdenv.mkDerivation {
name = "mkpasswd-${whois.version}";
pname = "mkpasswd";
inherit (whois) version;
inherit (whois) src;
src = whois.src;
nativeBuildInputs = [ perl pkg-config ];
buildInputs = [ libxcrypt ];
nativeBuildInputs = [ perl ];
preConfigure = whois.preConfigure;
inherit (whois) preConfigure;
buildPhase = "make mkpasswd";
installPhase = "make install-mkpasswd";