flake

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://nixos.org/manual/nixpkgs/stable/#variables-specifying-dependencies

references #

https://nixos.wiki/index.php?title=Flakes