From c5cfd416abe6ced55f9d57810cadff2556df708f Mon Sep 17 00:00:00 2001 From: phaer Date: Mon, 15 Apr 2024 09:31:39 +0200 Subject: [PATCH] core.lock: Add missing coreutils dependency... otherwise we implictly assume realpath to already be in $PATH which isn't always the case, i.e. on older macOS releases. --- modules/dream2nix/core/lock/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/dream2nix/core/lock/default.nix b/modules/dream2nix/core/lock/default.nix index 4d9b1a98..ba2ea0ce 100644 --- a/modules/dream2nix/core/lock/default.nix +++ b/modules/dream2nix/core/lock/default.nix @@ -205,7 +205,7 @@ in { ### Executing auto generated refresh script - currDir="$(realpath .)" + currDir="$(${config.deps.coreutils}/bin/realpath .)" ${generatedRefreshScript}/bin/refresh cd "$currDir" @@ -221,7 +221,7 @@ in { deps = {nixpkgs, ...}: l.mapAttrs (_: l.mkOverride 1004) { - inherit (nixpkgs) bash nix writeScriptBin; + inherit (nixpkgs) bash coreutils nix writeScriptBin; inherit (nixpkgs.writers) writePython3 writePython3Bin; }; };