mkpasswd: Prefer inherit

This commit is contained in:
Andrew Marshall 2021-10-29 12:27:58 -04:00
parent bbf70ca393
commit 365f3a5918

View file

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