mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 04:45:39 +00:00
Nix Packages collection & NixOS
29fed6f834
This update greatly enhances the accuracy with which dependencies are expressed in the generated Nix files. Previous versions distinguished dependencies for building ("buildDepends") and testing ("testDepends"). This distinction didn't apply to system packages or build tools, however: the fields "extraLibs" and "buildTools" applied to the entire build. This meant that dependencies required only for testing would be pulled in regardless of whether the test were actually being run, etc. These days, we distinguish dependencies for libraries, executables, and tests, and for each of those types we distinguish dependencies on Haskell libraries, system libraries, pkgconfig libraries, and build tools. This gives us a whopping 12 new attributes xxxHaskellDepends xxxSystemDepends xxxPkgconfigDepends xxxToolDepends where "xxx" is any of "library", "executable", or "test". The old dependency attributes are no longer generated by cabal2nix. The generic builder in Nixpkgs still accepts them, though, for the sake of backwards compatibility. This means that you don't have to re-generate all your build expressions with the new version, but you *should*. |
||
---|---|---|
doc | ||
lib | ||
maintainers | ||
nixos | ||
pkgs | ||
.gitignore | ||
.travis.yml | ||
.version | ||
CONTRIBUTING.md | ||
COPYING | ||
default.nix | ||
README.md |
Nixpkgs is a collection of packages for the Nix package manager. It is periodically built and tested by the hydra build daemon as so-called channels. To get channel information via git, add nixpkgs-channels as a remote:
% git remote add channels git://github.com/NixOS/nixpkgs-channels.git
For stability and maximum binary package support, it is recommended to maintain
custom changes on top of one of the channels, e.g. nixos-14.12
for the latest
release and nixos-unstable
for the latest successful build of master:
% git remote update channels
% git rebase channels/nixos-14.12
For pull-requests, please rebase onto nixpkgs master
.
NixOS linux distribution source code is located inside
nixos/
folder.
- NixOS installation instructions
- Documentation (Nix Expression Language chapter)
- Manual (How to write packages for Nix)
- Manual (NixOS)
- Continuous package builds for unstable/master
- Continuous package builds for 14.12 release
- Tests for unstable/master
- Tests for 14.12 release
Communication: