[PR] #4 YisuiDenghua/patch-1 Add NixOS instructions

Update README.md
This commit is contained in:
Hykilpikonna 2022-07-25 20:51:37 -04:00 committed by GitHub
commit f80262b615
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,10 +19,21 @@ pip install hyfetch
Currently, these distributions have existing packages for HyFetch:
* ArchLinux: `yay -S hyfetch` (Thanks to @ Aleksana)
* NixOS: `nix-env -i hyfetch` ([In Progress](https://github.com/NixOS/nixpkgs/pull/170309))
* Nix (Nixpkgs): `nix-env -i hyfetch` ([In Progress](https://github.com/NixOS/nixpkgs/pull/170309))
* Nix (NUR): ([In Progress](https://github.com/nix-community/NUR/pull/467))
* Guix: `guix install hyfetch` (Thanks to @ WammKD)
Currently, if you're using NixOS, you can use HyFetch with `nix-env -if https://github.com/hykilpikonna/hyfetch/tarball/master -A hyfetch`
Currently, if you're using Nix the package manager or NixOS, you can use HyFetch with `nix-env -if https://github.com/hykilpikonna/hyfetch/tarball/master -A hyfetch`
> Now `hyfetch` is available in our NixOS-CN's flake. You can add [NixOS-CN](https://github.com/nixos-cn/flakes) in your [Nix Flake](https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-flake.html) at first, then install package `hyfetch`.
> ```
> #flake.nix
>
> environment.systemPackages =
> [ nixos-cn.legacyPackages.${system}.hyfetch ];
>
> ```
> (Thanks to @ YisuiDenghua and @ linyinfeng )
## Usage