Skip to content

Commit

Permalink
fix typo (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
DataEraserC authored Mar 17, 2024
1 parent d710962 commit 490be22
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/development/cross-platform-compilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ So how to use this method in Flakes? The example `flake.nix` is as follows:
system = "x86_64-linux";
modules = [
{
nigpkgs.crossSystem = {
nixpkgs.crossSystem = {
config = "riscv64-unknown-linux-gnu";
};

Expand Down Expand Up @@ -304,7 +304,7 @@ follows:
};
modules = [
{
nigpkgs.crossSystem = {
nixpkgs.crossSystem = {
config = "riscv64-unknown-linux-gnu";
};
}
Expand Down
4 changes: 2 additions & 2 deletions docs/development/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ For example, we can directly install this wrapper through NixOS's
`environment.systemPackages`, and then execute it directly:

```nix
{pkgs, lib, ...}{
{pkgs, lib, ...}:{
environment.systemPackages = [
# Install the wrapper into the system
Expand All @@ -279,7 +279,7 @@ For example, we can directly install this wrapper through NixOS's
mkdir -p $out/bin/
ln -s ${pkgs.nushell}/bin/nu $out/bin/dev-shell
wrapProgram $out/bin/dev-shell --prefix PATH : ${pkgs.lib.makeBinPath packages}
'';)
'')
];
}
```
Expand Down
4 changes: 2 additions & 2 deletions docs/zh/development/cross-platform-compilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ nix-repl> pkgs.pkgsCross.riscv64.stdenv.cc
system = "x86_64-linux";
modules = [
{
nigpkgs.crossSystem = {
nixpkgs.crossSystem = {
config = "riscv64-unknown-linux-gnu";
};
Expand Down Expand Up @@ -276,7 +276,7 @@ nix-repl> pkgs.pkgsCross.riscv64.stdenv.cc
};
modules = [
{
nigpkgs.crossSystem = {
nixpkgs.crossSystem = {
config = "riscv64-unknown-linux-gnu";
};
}
Expand Down
4 changes: 2 additions & 2 deletions docs/zh/development/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ session,可以在其中正常使用 `node` `pnpm` 命令.
过 NixOS 的 `environment.systemPackages` 来安装这个 wrapper,然后直接执行它:

```nix
{pkgs, lib, ...}{
{pkgs, lib, ...}:{
environment.systemPackages = [
# 将 dev-shell 安装到系统环境中
Expand All @@ -276,7 +276,7 @@ session,可以在其中正常使用 `node` `pnpm` 命令.
mkdir -p $out/bin/
ln -s ${pkgs.nushell}/bin/nu $out/bin/dev-shell
wrapProgram $out/bin/dev-shell --prefix PATH : ${pkgs.lib.makeBinPath packages}
'';)
'')
];
}
```
Expand Down

0 comments on commit 490be22

Please sign in to comment.