From 490be22f0a3a8ba76146a891e323e63f18bf7766 Mon Sep 17 00:00:00 2001 From: Sacabambaspis <102341238+DataEraserC@users.noreply.github.com> Date: Sun, 17 Mar 2024 21:34:00 +0800 Subject: [PATCH] fix typo (#129) --- docs/development/cross-platform-compilation.md | 4 ++-- docs/development/intro.md | 4 ++-- docs/zh/development/cross-platform-compilation.md | 4 ++-- docs/zh/development/intro.md | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/development/cross-platform-compilation.md b/docs/development/cross-platform-compilation.md index 7169c1f..b8d0c2b 100644 --- a/docs/development/cross-platform-compilation.md +++ b/docs/development/cross-platform-compilation.md @@ -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"; }; @@ -304,7 +304,7 @@ follows: }; modules = [ { - nigpkgs.crossSystem = { + nixpkgs.crossSystem = { config = "riscv64-unknown-linux-gnu"; }; } diff --git a/docs/development/intro.md b/docs/development/intro.md index dc0e76f..9dbd26e 100644 --- a/docs/development/intro.md +++ b/docs/development/intro.md @@ -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 @@ -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} - '';) + '') ]; } ``` diff --git a/docs/zh/development/cross-platform-compilation.md b/docs/zh/development/cross-platform-compilation.md index 33b2e80..585b2a5 100644 --- a/docs/zh/development/cross-platform-compilation.md +++ b/docs/zh/development/cross-platform-compilation.md @@ -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"; }; @@ -276,7 +276,7 @@ nix-repl> pkgs.pkgsCross.riscv64.stdenv.cc }; modules = [ { - nigpkgs.crossSystem = { + nixpkgs.crossSystem = { config = "riscv64-unknown-linux-gnu"; }; } diff --git a/docs/zh/development/intro.md b/docs/zh/development/intro.md index e4244ef..6ce9db1 100644 --- a/docs/zh/development/intro.md +++ b/docs/zh/development/intro.md @@ -257,7 +257,7 @@ session,可以在其中正常使用 `node` `pnpm` 命令. 过 NixOS 的 `environment.systemPackages` 来安装这个 wrapper,然后直接执行它: ```nix -{pkgs, lib, ...}{ +{pkgs, lib, ...}:{ environment.systemPackages = [ # 将 dev-shell 安装到系统环境中 @@ -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} - '';) + '') ]; } ```