script-directory: fix cross patching

Changed files
+5 -1
pkgs
by-name
sc
script-directory
+5 -1
pkgs/by-name/sc/script-directory/package.nix
···
fetchFromGitHub,
installShellFiles,
patsh,
+
coreutils,
}:
stdenvNoCC.mkDerivation rec {
···
patsh
];
+
# needed for cross
+
buildInputs = [ coreutils ];
+
installPhase = ''
runHook preInstall
-
patsh -f sd
+
patsh -f sd -s ${builtins.storeDir} --path "$HOST_PATH"
install -Dt "$out/bin" sd
installShellCompletion --zsh _sd