tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
rmate-sh: fix cross patching
Peder Bergebakken Sundt
8 months ago
0056729c
b02060cf
+5
-1
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
rm
rmate-sh
package.nix
+5
-1
pkgs/by-name/rm/rmate-sh/package.nix
···
4
4
fetchFromGitHub,
5
5
patsh,
6
6
hostname,
7
7
+
coreutils,
7
8
}:
8
9
9
10
stdenv.mkDerivation rec {
···
19
20
20
21
nativeBuildInputs = [ patsh ];
21
22
23
23
+
# needed for cross
24
24
+
buildInputs = [ coreutils ];
25
25
+
22
26
buildPhase = ''
23
27
runHook preBuild
24
28
···
26
30
--replace-fail \
27
31
'echo "hostname"' \
28
32
'echo "${hostname}/bin/hostname"'
29
29
-
patsh -f rmate -s ${builtins.storeDir}
33
33
+
patsh -f rmate -s ${builtins.storeDir} --path "$HOST_PATH"
30
34
31
35
runHook postBuild
32
36
'';