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 12f9379123 Add 'path' fetcher
This fetchers copies a plain directory (i.e. not a Git/Mercurial
repository) to the store (or does nothing if the path is already a
store path).

One use case is to pin the 'nixpkgs' flake used to build the current
NixOS system, and prevent it from being garbage-collected, via a
system registry entry like this:

  {
      "from": {
          "id": "nixpkgs",
          "type": "indirect"
      },
      "to": {
          "type": "path",
          "path": "/nix/store/rralhl3wj4rdwzjn16g7d93mibvlr521-source",
          "lastModified": 1585388205,
          "rev": "b0c285807d6a9f1b7562ec417c24fa1a30ecc31a"
      },
      "exact": true
  }

Note the fake "lastModified" and "rev" attributes that ensure that the
flake gives the same evaluation results as the corresponding
Git/GitHub inputs.
2020-04-02 14:56:20 +02:00
.github
config
contrib
corepkgs
doc/manual
m4
maintainers
misc
mk Remove global -I flags 2020-03-30 15:30:19 +02:00
nix-rust
perl
scripts installer: Fix terminal colors. 2020-03-24 21:15:01 -07:00
src Add 'path' fetcher 2020-04-02 14:56:20 +02:00
tests Makefile cleanup 2020-03-30 16:50:13 +02:00
.dir-locals.el
.editorconfig
.gitignore Misc changes from the flakes branch 2020-03-24 14:34:47 +01:00
.travis.yml
.version
bootstrap.sh
configure.ac
COPYING
default.nix
flake.lock flake.lock: Update 2020-03-30 13:33:08 +02:00
flake.nix Set version properly 2020-04-01 00:20:12 +02:00
local.mk Remove global -I flags 2020-03-30 15:30:19 +02:00
Makefile Move fetchers from libstore to libfetchers 2020-03-30 14:04:53 +02:00
Makefile.config.in Misc changes from the flakes branch 2020-03-24 14:34:47 +01:00
precompiled-headers.h
README.md
shell.nix

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