flakeref
#
{
type = "github";
owner = "NixOS";
repo = "nixpkgs";
}
-
nixpkgs
-
nixpkgs/a3a3dda3bacf61e8a39258a0ed9c924eeca8e293
-
github:NixOS/nixpkgs
-
github:NixOS/nixpkgs/nixos-20.09
-
github:NixOS/nixpkgs/a3a3dda3bacf61e8a39258a0ed9c924eeca8e293
-
github:edolstra/nix-warez?dir=blender
-
git+https://github.com/NixOS/patchelf
-
git+https://github.com/NixOS/patchelf?ref=master
-
git+https://github.com/NixOS/patchelf?ref=master&rev=f34751b88bd07d7f44f5cd3200fb4122bf916c7e
-
https://github.com/NixOS/patchelf/archive/master.tar.gz
flake-parts #
帮助写 flake
registry #
flakeref 的别名,是为了方便使用的。nix registry
来辅助管理。
alias: symbolic id to flakeref
<nixpkgs>
=> github:NixOS/nixpkgs/nixpkgs-unstable
templates #
- https://github.com/akirak/flake-templates/blob/master/rust/flake.nix
- https://github.com/hercules-ci/flake-parts/blob/main/examples/shell-environments/flake.nix
不同的依赖方式 #
https://nixos.org/manual/nixpkgs/stable/#variables-specifying-dependencies