@ -1,6 +1,10 @@
{ lib , stdenv , fetchurl , pkg-config , zlib , shadow , libcap_ng
{ lib , stdenv , fetchurl , pkg-config , zlib , shadow
, capabilitiesSupport ? true
, libcap_ng
, ncursesSupport ? true
, ncursesSupport ? true
, ncurses , pam
, ncurses
, pamSupport ? true
, pam
, systemdSupport ? stdenv . isLinux && ! stdenv . hostPlatform . isStatic
, systemdSupport ? stdenv . isLinux && ! stdenv . hostPlatform . isStatic
, systemd
, systemd
, nlsSupport ? true
, nlsSupport ? true
@ -59,7 +63,9 @@ stdenv.mkDerivation rec {
] ;
] ;
nativeBuildInputs = [ pkg-config ] ;
nativeBuildInputs = [ pkg-config ] ;
buildInputs = [ zlib pam libcap_ng ]
buildInputs = [ zlib ]
++ lib . optionals pamSupport [ pam ]
++ lib . optionals capabilitiesSupport [ libcap_ng ]
++ lib . optionals ncursesSupport [ ncurses ]
++ lib . optionals ncursesSupport [ ncurses ]
++ lib . optionals systemdSupport [ systemd ] ;
++ lib . optionals systemdSupport [ systemd ] ;