mkpasswd: Prefer inherit
This commit is contained in:
parent
bbf70ca393
commit
365f3a5918
1 changed files with 4 additions and 4 deletions
|
@ -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";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue