mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
script-directory: fix cross patching
This commit is contained in:
parent
0056729cb5
commit
875bb58595
1 changed files with 5 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
patsh,
|
patsh,
|
||||||
|
coreutils,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation rec {
|
stdenvNoCC.mkDerivation rec {
|
||||||
|
@ -22,10 +23,13 @@ stdenvNoCC.mkDerivation rec {
|
||||||
patsh
|
patsh
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# needed for cross
|
||||||
|
buildInputs = [ coreutils ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
patsh -f sd
|
patsh -f sd -s ${builtins.storeDir} --path "$HOST_PATH"
|
||||||
install -Dt "$out/bin" sd
|
install -Dt "$out/bin" sd
|
||||||
installShellCompletion --zsh _sd
|
installShellCompletion --zsh _sd
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue