home-manager: add ncurses to PATH

Fixes #3097
This commit is contained in:
Robert Helgesson 2022-07-18 15:18:05 +02:00
parent 64c745fe1c
commit 30dda628bc
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -1,5 +1,5 @@
{ runCommand, lib, bash, callPackage, coreutils, findutils, gettext, gnused { runCommand, lib, bash, callPackage, coreutils, findutils, gettext, gnused
, less , less, ncurses
# used for pkgs.path for nixos-option # used for pkgs.path for nixos-option
, pkgs , pkgs
@ -31,7 +31,15 @@ in runCommand "home-manager" {
substituteInPlace $out/bin/home-manager \ substituteInPlace $out/bin/home-manager \
--subst-var-by bash "${bash}" \ --subst-var-by bash "${bash}" \
--subst-var-by DEP_PATH "${ --subst-var-by DEP_PATH "${
lib.makeBinPath [ coreutils findutils gettext gnused less nixos-option ] lib.makeBinPath [
coreutils
findutils
gettext
gnused
less
ncurses
nixos-option
]
}" \ }" \
--subst-var-by HOME_MANAGER_LIB '${../lib/bash/home-manager.sh}' \ --subst-var-by HOME_MANAGER_LIB '${../lib/bash/home-manager.sh}' \
--subst-var-by HOME_MANAGER_PATH '${pathStr}' \ --subst-var-by HOME_MANAGER_PATH '${pathStr}' \