@philiptaron's lix workspace
Find a file
Eelco Dolstra bbe97dff8b Make the Store API more type-safe
Most functions now take a StorePath argument rather than a Path (which
is just an alias for std::string). The StorePath constructor ensures
that the path is syntactically correct (i.e. it looks like
<store-dir>/<base32-hash>-<name>). Similarly, functions like
buildPaths() now take a StorePathWithOutputs, rather than abusing Path
by adding a '!<outputs>' suffix.

Note that the StorePath type is implemented in Rust. This involves
some hackery to allow Rust values to be used directly in C++, via a
helper type whose destructor calls the Rust type's drop()
function. The main issue is the dynamic nature of C++ move semantics:
after we have moved a Rust value, we should not call the drop function
on the original value. So when we move a value, we set the original
value to bitwise zero, and the destructor only calls drop() if the
value is not bitwise zero. This should be sufficient for most types.

Also lots of minor cleanups to the C++ API to make it more modern
(e.g. using std::optional and std::string_view in some places).
2019-12-10 22:06:05 +01:00
.github Remove .github/FUNDING.yml 2019-07-23 15:21:23 +02:00
config update config/config.{sub,guess} 2018-08-13 20:00:17 +00:00
contrib function-trace: always show the trace 2019-09-18 23:23:21 +02:00
corepkgs Remove most of <nix/config.nix> 2019-11-26 22:07:28 +01:00
doc/manual doc/manual: add ids to the advanced attribute definitions 2019-12-03 18:22:27 +01:00
m4 autoconf: Fix C++17 detection not working on Ubuntu 16.04. 2019-07-03 04:32:25 +02:00
maintainers upload-release.pl: Fix sshfs call 2019-09-04 21:44:40 +02:00
misc Make nix-daemon.plist less fragile on macOS 2019-10-09 12:52:01 +01:00
mk Fix precompiled-headers generation 2019-12-05 20:26:24 +01:00
nix-rust Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
perl Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
scripts Provide a default value for NIX_PATH 2019-11-22 22:08:51 +01:00
src Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
tests Add base32 encoder/decoder 2019-12-10 13:37:23 +01:00
.dir-locals.el
.editorconfig
.gitignore Merge pull request #2748 from edolstra/rust 2019-11-29 19:33:31 +01:00
.travis.yml travis: enable linux builds 2019-10-31 16:37:33 +00:00
.version Bump version 2019-09-04 15:59:33 +02:00
bootstrap.sh
configure.ac Merge branch 'pkg-config-static' of https://github.com/matthewbauer/nix 2019-12-02 13:20:02 +01:00
COPYING
local.mk Shut up about deprecated functions 2019-12-10 13:44:49 +01:00
Makefile Add some Rust code 2019-11-26 22:07:28 +01:00
Makefile.config.in Get BOOST_LDFLAGS from autoconf, fix Ubuntu 16.04 build. 2019-07-03 04:32:25 +02:00
precompiled-headers.h Fix macOS build 2019-11-07 11:53:28 +01:00
README.md Add Open Collective 2019-07-18 10:57:26 +02:00
release-common.nix Add some Rust code 2019-11-26 22:07:28 +01:00
release.nix Reduce the size of the vendor directory by removing some winapi cruft 2019-11-26 22:07:28 +01:00
shell.nix Update to async/await-enabled tokio 2019-12-10 13:37:23 +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 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.