This commit is contained in:
Sacabambaspis
2024-03-17 21:34:00 +08:00
committed by GitHub
parent d710962095
commit 490be22f0a
4 changed files with 8 additions and 8 deletions

View File

@ -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";
};
}

View File

@ -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}
'';)
'')
];
}
```