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
fetchFromGitHub,
5
patsh,
6
hostname,
0
7
}:
8
9
stdenv.mkDerivation rec {
···
19
20
nativeBuildInputs = [ patsh ];
21
0
0
0
22
buildPhase = ''
23
runHook preBuild
24
···
26
--replace-fail \
27
'echo "hostname"' \
28
'echo "${hostname}/bin/hostname"'
29
-
patsh -f rmate -s ${builtins.storeDir}
30
31
runHook postBuild
32
'';
···
4
fetchFromGitHub,
5
patsh,
6
hostname,
7
+
coreutils,
8
}:
9
10
stdenv.mkDerivation rec {
···
20
21
nativeBuildInputs = [ patsh ];
22
23
+
# needed for cross
24
+
buildInputs = [ coreutils ];
25
+
26
buildPhase = ''
27
runHook preBuild
28
···
30
--replace-fail \
31
'echo "hostname"' \
32
'echo "${hostname}/bin/hostname"'
33
+
patsh -f rmate -s ${builtins.storeDir} --path "$HOST_PATH"
34
35
runHook postBuild
36
'';