mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55: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,
|
||||
installShellFiles,
|
||||
patsh,
|
||||
coreutils,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
|
@ -22,10 +23,13 @@ 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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue