on iko/ghcjs-patch-master help sign in
Fix typo & comment out cross comp in eg. flake.nix (#1423)
97b3a67Hamish Mackenzie
docs/tutorials/getting-started-flakes.md+2−2
@@ -62,14 +62,14 @@ Add `flake.nix`:
62 nixpkgs-fmt
62 nixpkgs-fmt
63 ];
63 ];
64 # This adds `js-unknown-ghcjs-cabal` to the shell.
64 # This adds `js-unknown-ghcjs-cabal` to the shell.
65− shell.crossPlatform = p: [p.ghcjs];
65+ # shell.crossPlatforms = p: [p.ghcjs];
66 };
66 };
67 })
67 })
68 ];
68 ];
69 pkgs = import nixpkgs { inherit system overlays; inherit (haskellNix) config; };
69 pkgs = import nixpkgs { inherit system overlays; inherit (haskellNix) config; };
70 flake = pkgs.helloProject.flake {
70 flake = pkgs.helloProject.flake {
71 # This adds support for `nix build .#js-unknown-ghcjs-cabal:hello:exe:hello`
71 # This adds support for `nix build .#js-unknown-ghcjs-cabal:hello:exe:hello`
72− crossPlatforms = p: [p.ghcjs];
72+ # crossPlatforms = p: [p.ghcjs];
73 };
73 };
74 in flake // {
74 in flake // {
75 # Built by `nix build .`
75 # Built by `nix build .`