From e1e0d272d5ac75414a4870b26d1ffb95d3a658e9 Mon Sep 17 00:00:00 2001 From: Gabriele Modena Date: Sat, 10 Feb 2024 21:40:22 +0100 Subject: [PATCH] installer: fix path to coreutils commands. (#40) Fixes mkdir, cat and ln not being accessible by the installer script. --- modules/installer.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/installer.nix b/modules/installer.nix index 8b6cc0c..079413d 100644 --- a/modules/installer.nix +++ b/modules/installer.nix @@ -47,7 +47,7 @@ let else "\${XDG_DATA_HOME:-$HOME/.local/share}/flatpak/overrides"; flatpakOverridesCmd = installation: {}: '' # Update overrides that are managed by this module (both old and new) - mkdir -p ${overridesDir} + ${pkgs.coreutils}/bin/mkdir -p ${overridesDir} ${pkgs.jq}/bin/jq -r -n \ --argjson old "$OLD_STATE" \ --argjson new "$NEW_STATE" \ @@ -57,7 +57,7 @@ let # Transform the INI-like Flatpak overrides file into a workable JSON if [[ -f $OVERRIDES_PATH ]]; then - ACTIVE=$(cat $OVERRIDES_PATH \ + ACTIVE=$(${pkgs.coreutils}/bin/cat $OVERRIDES_PATH \ | ${pkgs.jc}/bin/jc --ini \ | ${pkgs.jq}/bin/jq 'map_values(map_values(split(";") | select(. != []) // ""))') else @@ -123,5 +123,5 @@ pkgs.writeShellScript "flatpak-managed-install" '' ${flatpakOverridesCmd installation {}} # Save state - ln -sf ${stateFile} ${statePath} + ${pkgs.coreutils}/bin/ln -sf ${stateFile} ${statePath} ''