A modern, delicious implementation of the Nix package manager, focused on correctness, usability, and growth — and committed to doing right by its community
Find a file
Eelco Dolstra 462421d345 Backport libfetchers from the flakes branch
This provides a pluggable mechanism for defining new fetchers. It adds
a builtin function 'fetchTree' that generalizes existing fetchers like
'fetchGit', 'fetchMercurial' and 'fetchTarball'. 'fetchTree' takes a
set of attributes, e.g.

  fetchTree {
    type = "git";
    url = "https://example.org/repo.git";
    ref = "some-branch";
    rev = "abcdef...";
  }

The existing fetchers are just wrappers around this. Note that the
input attributes to fetchTree are the same as flake input
specifications and flake lock file entries.

All fetchers share a common cache stored in
~/.cache/nix/fetcher-cache-v1.sqlite. This replaces the ad hoc caching
mechanisms in fetchGit and download.cc (e.g. ~/.cache/nix/{tarballs,git-revs*}).

This also adds support for Git worktrees (c169ea5904).
2020-04-07 09:03:14 +02:00
.github Remove build and binaryTarball since they're included in installerScript 2020-03-13 15:56:25 +01:00
config
contrib
corepkgs Move some corepkgs into the nix binary 2020-03-11 16:57:48 +01:00
doc/manual doc: Files in the store have modes 444/555, not 644/755 2020-03-23 20:23:27 -07:00
m4
maintainers
misc
mk Remove global -I flags 2020-03-30 15:30:19 +02:00
nix-rust Remove macro_use 2020-02-10 09:03:24 +01:00
perl nix-perl: Fix segfault in queryPathInfo) 2020-03-10 11:00:17 +01:00
scripts installer: Fix terminal colors. 2020-03-24 21:15:01 -07:00
src Backport libfetchers from the flakes branch 2020-04-07 09:03:14 +02:00
tests Backport libfetchers from the flakes branch 2020-04-07 09:03:14 +02:00
.dir-locals.el .dir-locals.el: Set additional lambda indentation to zero 2020-02-20 07:56:35 +01:00
.editorconfig
.gitignore Misc changes from the flakes branch 2020-03-24 14:34:47 +01:00
.travis.yml
.version
bootstrap.sh
configure.ac
COPYING
local.mk Remove global -I flags 2020-03-30 15:30:19 +02:00
Makefile Backport libfetchers from the flakes branch 2020-04-07 09:03:14 +02:00
Makefile.config.in Misc changes from the flakes branch 2020-03-24 14:34:47 +01:00
precompiled-headers.h
README.md README.md: Remove reference to OpenSSL 2020-03-13 18:42:53 +01:00
release-common.nix Remove the tarball job 2020-03-13 18:05:22 +01:00
release.nix Publish a tarball containing the crates we depend on 2020-04-03 20:14:34 +02:00
shell.nix Remove the tarball job 2020-03-13 18:05:22 +01:00

Open Collective supporters

Nix, the purely functional package manager

Nix is a new take on package management that is fairly unique. Because of its purity aspects, a lot of issues found in traditional package managers don't appear with Nix.

To find out more about the tool, usage and installation instructions, please read the manual, which is available on the Nix website at https://nixos.org/nix/manual.

Contributing

Take a look at the Hacking Section of the manual. It helps you to get started with building Nix from source.

License

Nix is released under the LGPL v2.1