1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-26 21:19:45 +01:00

home-manager: add coreutils to PATH

This ensures that we use the expected version of some useful tools,
such as readlink.
This commit is contained in:
Christopher League 2017-05-16 10:09:18 -04:00 committed by Robert Helgesson
parent 02288320d0
commit 1a491f24f7
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86
2 changed files with 6 additions and 0 deletions

View file

@ -28,6 +28,7 @@ pkgs.stdenv.mkDerivation {
substituteInPlace $out/bin/home-manager \
--subst-var-by bash "${pkgs.bash}" \
--subst-var-by coreutils "${pkgs.coreutils}" \
--subst-var-by MODULES_PATH '${modulesPath}' \
--subst-var-by HOME_MANAGER_EXPR_PATH "${homeManagerExpr}"
'';

View file

@ -1,5 +1,10 @@
#!@bash@/bin/bash
# This code explicitly requires GNU Core Utilities and we therefore
# need to ensure they are prioritized over any other similarly named
# tools on the system.
PATH=@coreutils@/bin:$PATH
set -euo pipefail
function doBuild() {