forked from mirrors/nixpkgs
nixpkgs manual: various improvements in introduction
- rename to preface to be inline with NixOS manual - refer to other manuals - use https - change example channel to 19.09
This commit is contained in:
parent
f76c8362e6
commit
8ee7740427
|
@ -5,7 +5,7 @@
|
||||||
<subtitle>Version <xi:include href=".version" parse="text" />
|
<subtitle>Version <xi:include href=".version" parse="text" />
|
||||||
</subtitle>
|
</subtitle>
|
||||||
</info>
|
</info>
|
||||||
<xi:include href="introduction.chapter.xml" />
|
<xi:include href="preface.chapter.xml" />
|
||||||
<part>
|
<part>
|
||||||
<title>Using Nixpkgs</title>
|
<title>Using Nixpkgs</title>
|
||||||
<xi:include href="configuration.xml" />
|
<xi:include href="configuration.xml" />
|
||||||
|
|
|
@ -1,44 +1,45 @@
|
||||||
---
|
---
|
||||||
title: Introduction
|
title: Preface
|
||||||
author: Frederik Rietdijk
|
author: Frederik Rietdijk
|
||||||
date: 2015-11-25
|
date: 2015-11-25
|
||||||
---
|
---
|
||||||
|
|
||||||
# Introduction
|
# Preface
|
||||||
|
|
||||||
The Nix Packages collection (Nixpkgs) is a set of thousands of packages for the
|
The Nix Packages collection (Nixpkgs) is a set of thousands of packages for the
|
||||||
[Nix package manager](http://nixos.org/nix/), released under a
|
[Nix package manager](https://nixos.org/nix/), released under a
|
||||||
[permissive MIT/X11 license](https://github.com/NixOS/nixpkgs/blob/master/COPYING).
|
[permissive MIT/X11 license](https://github.com/NixOS/nixpkgs/blob/master/COPYING).
|
||||||
Packages are available for several platforms, and can be used with the Nix
|
Packages are available for several platforms, and can be used with the Nix
|
||||||
package manager on most GNU/Linux distributions as well as NixOS.
|
package manager on most GNU/Linux distributions as well as [NixOS](https://nixos.org/nixos).
|
||||||
|
|
||||||
This manual primarily describes how to write packages for the Nix Packages collection
|
This manual primarily describes how to write packages for the Nix Packages collection
|
||||||
(Nixpkgs). Thus it’s mainly for packagers and developers who want to add packages to
|
(Nixpkgs). Thus it’s mainly for packagers and developers who want to add packages to
|
||||||
Nixpkgs. If you like to learn more about the Nix package manager and the Nix
|
Nixpkgs. If you like to learn more about the Nix package manager and the Nix
|
||||||
expression language, then you are kindly referred to the [Nix manual](http://nixos.org/nix/manual/).
|
expression language, then you are kindly referred to the [Nix manual](https://nixos.org/nix/manual/).
|
||||||
|
The NixOS distribution is documented in the [NixOS manual](https://nixos.org/nixos/manual/).
|
||||||
|
|
||||||
## Overview of Nixpkgs
|
## Overview of Nixpkgs
|
||||||
|
|
||||||
Nix expressions describe how to build packages from source and are collected in
|
Nix expressions describe how to build packages from source and are collected in
|
||||||
the [nixpkgs repository](https://github.com/NixOS/nixpkgs). Also included in the
|
the [nixpkgs repository](https://github.com/NixOS/nixpkgs). Also included in the
|
||||||
collection are Nix expressions for
|
collection are Nix expressions for
|
||||||
[NixOS modules](http://nixos.org/nixos/manual/index.html#sec-writing-modules).
|
[NixOS modules](https://nixos.org/nixos/manual/index.html#sec-writing-modules).
|
||||||
With these expressions the Nix package manager can build binary packages.
|
With these expressions the Nix package manager can build binary packages.
|
||||||
|
|
||||||
Packages, including the Nix packages collection, are distributed through
|
Packages, including the Nix packages collection, are distributed through
|
||||||
[channels](http://nixos.org/nix/manual/#sec-channels). The collection is
|
[channels](https://nixos.org/nix/manual/#sec-channels). The collection is
|
||||||
distributed for users of Nix on non-NixOS distributions through the channel
|
distributed for users of Nix on non-NixOS distributions through the channel
|
||||||
`nixpkgs`. Users of NixOS generally use one of the `nixos-*` channels, e.g.
|
`nixpkgs`. Users of NixOS generally use one of the `nixos-*` channels, e.g.
|
||||||
`nixos-16.03`, which includes all packages and modules for the stable NixOS
|
`nixos-19.09`, which includes all packages and modules for the stable NixOS
|
||||||
16.03. Stable NixOS releases are generally only given
|
19.09. Stable NixOS releases are generally only given
|
||||||
security updates. More up to date packages and modules are available via the
|
security updates. More up to date packages and modules are available via the
|
||||||
`nixos-unstable` channel.
|
`nixos-unstable` channel.
|
||||||
|
|
||||||
Both `nixos-unstable` and `nixpkgs` follow the `master` branch of the Nixpkgs
|
Both `nixos-unstable` and `nixpkgs` follow the `master` branch of the Nixpkgs
|
||||||
repository, although both do lag the `master` branch by generally
|
repository, although both do lag the `master` branch by generally
|
||||||
[a couple of days](http://howoldis.herokuapp.com/). Updates to a channel are
|
[a couple of days](https://howoldis.herokuapp.com/). Updates to a channel are
|
||||||
distributed as soon as all tests for that channel pass, e.g.
|
distributed as soon as all tests for that channel pass, e.g.
|
||||||
[this table](http://hydra.nixos.org/job/nixpkgs/trunk/unstable#tabs-constituents)
|
[this table](https://hydra.nixos.org/job/nixpkgs/trunk/unstable#tabs-constituents)
|
||||||
shows the status of tests for the `nixpkgs` channel.
|
shows the status of tests for the `nixpkgs` channel.
|
||||||
|
|
||||||
The tests are conducted by a cluster called [Hydra](http://nixos.org/hydra/),
|
The tests are conducted by a cluster called [Hydra](http://nixos.org/hydra/),
|
Loading…
Reference in a new issue