Skip to content

Commit 78ee7af

Browse files
committed
comma: Fix cross
1 parent fbcf476 commit 78ee7af

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pkgs/by-name/co/comma/package.nix

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
stdenv,
23
comma,
34
fetchFromGitHub,
45
installShellFiles,
@@ -8,6 +9,7 @@
89
nix,
910
rustPlatform,
1011
testers,
12+
buildPackages,
1113
}:
1214

1315
rustPlatform.buildRustPackage rec {
@@ -48,8 +50,9 @@ rustPlatform.buildRustPackage rec {
4850
"$out/share/comma/command-not-found.nu" \
4951
"$out/share/comma/command-not-found.fish" \
5052
--replace-fail "comma --ask" "$out/bin/comma --ask"
51-
52-
"$out/bin/comma" --mangen > comma.1
53+
''
54+
+ lib.optionalString (stdenv.hostPlatform.emulatorAvailable buildPackages) ''
55+
${stdenv.hostPlatform.emulator buildPackages} "$out/bin/comma" --mangen > comma.1
5356
installManPage comma.1
5457
'';
5558

0 commit comments

Comments
 (0)