Browse Source

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

Update README.md
Hykilpikonna 3 years ago
parent
commit
f80262b615
1 changed files with 13 additions and 2 deletions
  1. 13 2
      README.md

+ 13 - 2
README.md

@@ -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