Find a file
Shea Levy b1112bbef1 import: If the path is a valid .drv file, parse it and generate a derivation attrset.
The generated attrset has drvPath and outPath with the right string context, type 'derivation', outputName with
the right name, all with a list of outputs, and an attribute for each output.

I see three uses for this (though certainly there may be more):

* Using derivations generated by something besides nix-instantiate (e.g. guix)

* Allowing packages provided by channels to be used in nix expressions. If a channel installed a valid deriver
  for each package it provides into the store, then those could be imported and used as dependencies or installed
  in environment.systemPackages, for example.

* Enable hydra to be consistent in how it treats inputs that are outputs of another build. Right now, if an
  input is passed as an argument to the job, it is passed as a derivation, but if it is accessed via NIX_PATH
  (i.e. through the <> syntax), then it is a path that can be imported. This is problematic because the build
  being depended upon may have been built with non-obvious arguments passed to its jobset file. With this
  feature, hydra can just set the name of that input to the path to its drv file in NIX_PATH
2012-07-25 09:30:17 -04:00
corepkgs import: If the path is a valid .drv file, parse it and generate a derivation attrset. 2012-07-25 09:30:17 -04:00
doc Automatically optimise the Nix store when a new path is added 2012-07-23 17:14:15 -04:00
misc fixes to nix-worker systemd service descriptor: - remove commented-out lines - register the file for distribution in Makefile.am 2012-05-31 08:59:36 -04:00
perl Add function queryPathFromHashPart() 2012-07-17 18:55:39 -04:00
scripts nix-build: Support the ‘-’ argument to build an expression from stdin 2012-07-23 17:11:12 -04:00
src import: If the path is a valid .drv file, parse it and generate a derivation attrset. 2012-07-25 09:30:17 -04:00
tests Add a test for Nix store optimisation 2012-07-23 17:40:23 -04:00
.gitignore Use "#pragma once" to prevent repeated header file inclusion 2012-07-18 14:59:03 -04:00
AUTHORS * Put something in here. 2004-11-07 20:30:02 +00:00
bootstrap.sh bootstrap: Simplify & make more robust. 2011-09-06 12:11:05 +00:00
build.nix Add an experimental nix-make file 2012-05-21 09:43:01 -04:00
configure.ac Handle platforms that don't support linking to a symlink 2012-07-23 18:42:18 -04:00
COPYING * Change this to LGPL to keep the government happy. 2006-04-25 16:41:06 +00:00
INSTALL * Autoconf / Automake configuration and building. 2003-04-04 16:14:56 +00:00
Makefile.am Get rid of nix.conf.example 2012-07-09 11:56:55 -04:00
nix.spec.in Really fix RPM builds 2012-07-09 13:16:09 -04:00
README * Install documentation in $(docdir) (i.e. share/doc/nix). 2008-11-19 13:19:09 +00:00
release.nix Disable tests temporarily 2012-07-25 09:30:17 -04:00
substitute.mk Support building with the Perl XS bindings disabled 2012-05-10 19:03:23 -04:00
version Bump version 2012-07-18 17:17:23 -04:00

Nix is a purely functional package manager.  For installation and
usage instructions, please read the manual, which can be found in
`docs/manual/manual.html', and additionally at the Nix website at
<http://nixos.org/>.


Acknowledgments

This product includes software developed by the OpenSSL Project for
use in the OpenSSL Toolkit (http://www.OpenSSL.org/).