Skip to content

Commit 5ef038e

Browse files
committed
feat(nix): add wasi32 cross target
Signed-off-by: Drew Hess <src@drewhess.com>
1 parent 0505153 commit 5ef038e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

flake.nix

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@
8585
# haskell.nix does a lot of heavy lifiting for us and gives us a
8686
# flake for our Cabal project with the following attributes:
8787
# `checks`, `apps`, and `packages`.
88-
primerFlake = pkgs.primer.flake { };
88+
primerFlake = pkgs.primer.flake {
89+
crossPlatforms = p: [ p.wasi32 ];
90+
};
8991

9092
weeder =
9193
let
@@ -424,6 +426,8 @@
424426
];
425427

426428
shell = {
429+
crossPlatforms = p: [ p.wasi32 ];
430+
427431
# We're using a `source-repository-package`, so we must disable this.
428432
# See:
429433
# https://github.com/hackworthltd/primer/issues/876
@@ -468,7 +472,9 @@
468472
};
469473
};
470474

471-
primerFlake = primer.flake { };
475+
primerFlake = primer.flake {
476+
crossPlatforms = p: [p.wasi32 ];
477+
};
472478

473479
# Note: these benchmarks should only be run (in CI) on a
474480
# "benchmark" machine. This is enforced for our CI system

0 commit comments

Comments
 (0)