git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #143661 from amarshall/mkpasswd-libcrypt

mkpasswd: Include support for more hash methods

commit7d40866ac5775bee67e7fe52b190f8f960d9270a authorJanne Heß <janne@hess.ooo> dateFri 5 Nov 2021, 00:53 (5 years ago) parent05aa7a4365f3a5
1 file changed+7−6
pkgs/tools/security/mkpasswd/default.nix+7−6
pkgs/tools/security/mkpasswd/default.nix+7−6
@@ -1,13 +1,14 @@
1−{ lib, stdenv, whois, perl }:
1+{ lib, stdenv, whois, libxcrypt, perl, pkg-config }:
22
33stdenv.mkDerivation {
4− name = "mkpasswd-${whois.version}";
4+ pname = "mkpasswd";
5+ inherit (whois) version;
6+ inherit (whois) src;
57
6− src = whois.src;
8+ nativeBuildInputs = [ perl pkg-config ];
9+ buildInputs = [ libxcrypt ];
710
8− nativeBuildInputs = [ perl ];
9−
10− preConfigure = whois.preConfigure;
11+ inherit (whois) preConfigure;
1112 buildPhase = "make mkpasswd";
1213 installPhase = "make install-mkpasswd";
1314