mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-17 06:41:31 +00:00
Nix Packages collection & NixOS
![]() The generated shell.nix file accepts a string argument called "compiler" that determines the package set used to instantiate the generated expression. For example, running "nix-shell --argstr compiler ghc7102" would evaluate the build inside of "pkgs.haskell.packages.ghc7102". Earlier versions of cabal2nix had the current default compiler hard-coded in the expression, but after this change this is no longer the case. When "compiler" remains unspecified, it defaults to "default", and this value causes evaluation in "pkgs.haskellPackages", which is the package set most people would like to use by default. That change has to benefits: 1) Generated expression no longer contain any particular compiler version. The choice of the default compiler depends on the version of Nixpkgs that's used to build the expression. 2) When the default compiler is used, overrides configured for the default package set apply, which was not the case in earlier versions. |
||
---|---|---|
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: