Eisfunke's Lix Fork
Find a file
Eelco Dolstra 90fe1dfd2f Register flake source trees as GC roots
This ensures that flakes don't get garbage-collected, which is
important to get nix-channel-like behaviour.

For example, running

  $ nix build hydra:

will create a GC root

  ~/.cache/nix/flake-closures/hydra -> /nix/store/xarfiqcwa4w8r4qpz1a769xxs8c3phgn-flake-closure

where the contents/references of the linked file in the store are the
flake source trees used by the 'hydra' flake:

  /nix/store/n6d5f5lkpfjbmkyby0nlg8y1wbkmbc7i-source
  /nix/store/vbkg4zy1qd29fnhflsv9k2j9jnbqd5m2-source
  /nix/store/z46xni7d47s5wk694359mq9ay353ar94-source

Note that this in itself is not enough to allow offline use; the
fetcher for the flakeref (e.g. fetchGit or downloadCached) must not
fail if it cannot fetch the latest version of the file, so long as it
knows a cached version.

Issue #2868.
2019-05-23 23:53:25 +02:00
.github
config
corepkgs nix: Enable pure mode by default 2019-02-12 20:35:03 +01:00
doc Start of flake documentation 2019-05-15 20:58:47 +02:00
maintainers Fix release script 2019-04-15 19:17:17 +02:00
misc nix-daemon: add variable to disable fork safety 2019-02-09 20:35:30 +01:00
mk Support --disable-shared flag. 2019-02-13 00:03:10 -05:00
perl perl/configure.ac: fix for new version location too 2019-03-25 09:18:30 +01:00
scripts nix-profile: Add all channels to $NIX_PATH 2019-05-15 14:30:09 +02:00
src Register flake source trees as GC roots 2019-05-23 23:53:25 +02:00
tests Register flake source trees as GC roots 2019-05-23 23:53:25 +02:00
.dir-locals.el
.editorconfig
.gitignore Move flake template into a separate file 2019-04-08 23:39:38 +02:00
.travis.yml
.version version -> .version, avoid conflict with C++20 <version> 2019-03-25 09:18:30 +01:00
bootstrap.sh
configure.ac Add basic flake tests 2019-05-07 23:32:09 +02:00
COPYING
flake.lock Update flake.lock 2019-05-09 15:08:09 +02:00
flake.nix nix dev-shell: Use 'provides.devShell' by default 2019-05-02 21:10:13 +02:00
local.mk Fetch the flake registry from the NixOS/flake-registry repo 2019-05-22 22:56:46 +02:00
Makefile Merge all nix-* binaries into nix 2018-10-26 12:54:00 +02:00
Makefile.config.in Add basic flake tests 2019-05-07 23:32:09 +02:00
nix.spec.in
README.md
release-common.nix Add basic flake tests 2019-05-07 23:32:09 +02:00
release.nix Hack to fix tests.evalNixpkgs 2019-05-11 01:48:33 +02:00
shell.nix nix dev-shell: Use 'provides.devShell' by default 2019-05-02 21:10:13 +02:00

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 http://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

This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit.