mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
rmate-sh: fix cross patching
This commit is contained in:
parent
b02060cf8e
commit
0056729cb5
1 changed files with 5 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
fetchFromGitHub,
|
||||
patsh,
|
||||
hostname,
|
||||
coreutils,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -19,6 +20,9 @@ stdenv.mkDerivation rec {
|
|||
|
||||
nativeBuildInputs = [ patsh ];
|
||||
|
||||
# needed for cross
|
||||
buildInputs = [ coreutils ];
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
|
@ -26,7 +30,7 @@ stdenv.mkDerivation rec {
|
|||
--replace-fail \
|
||||
'echo "hostname"' \
|
||||
'echo "${hostname}/bin/hostname"'
|
||||
patsh -f rmate -s ${builtins.storeDir}
|
||||
patsh -f rmate -s ${builtins.storeDir} --path "$HOST_PATH"
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue