mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
Compare commits
1 Commits
devShellTo
...
flake-libs
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3e39647ac1 |
18
flake.nix
18
flake.nix
@@ -20,6 +20,24 @@
|
|||||||
);
|
);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
The Nixpkgs repository/flake houses multiple components that provide functions.
|
||||||
|
|
||||||
|
These include the Nixpkgs `lib` library, with a larger number of functions for various purposes, as well as the `nixpkgs` (TBD) and `nixos` libraries whose main purpose is to provide configurability for those respective components.
|
||||||
|
*/
|
||||||
|
# This attribute set is intentionally not extensible. Its purpose is not dependency injection.
|
||||||
|
libs = {
|
||||||
|
/**
|
||||||
|
[The Nixpkgs library](https://nixos.org/manual/nixpkgs/unstable/#id-1.4)
|
||||||
|
*/
|
||||||
|
lib = import ./lib;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Entrypoints into [NixOS](https://nixos.org/manual/nixos/unstable/), including [`runTest`](https://nixos.org/manual/nixos/unstable/#sec-call-nixos-test-outside-nixos).
|
||||||
|
*/
|
||||||
|
nixos = import ./nixos/lib { };
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
`nixpkgs.lib` is a combination of the [Nixpkgs library](https://nixos.org/manual/nixpkgs/unstable/#id-1.4), and other attributes
|
`nixpkgs.lib` is a combination of the [Nixpkgs library](https://nixos.org/manual/nixpkgs/unstable/#id-1.4), and other attributes
|
||||||
that are _not_ part of the Nixpkgs library, but part of the Nixpkgs flake:
|
that are _not_ part of the Nixpkgs library, but part of the Nixpkgs flake:
|
||||||
|
|||||||
Reference in New Issue
Block a user