0
0
Fork 0
forked from lix-project/lix
lix/corepkgs
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
..
buildenv.nix Disable building in chroot for Nix's corepkgs 2012-05-09 22:14:36 -04:00
buildenv.pl * Refactoring: Get rid of a few subdirectories in corepkgs/, and some 2012-01-03 00:16:29 +00:00
config.nix.in corepkgs/config.nix.in: We'll need curl 2012-07-09 15:29:49 -04:00
derivation.nix * currentOutput -> outputName. "current" implies some temporal 2012-01-04 12:00:39 +00:00
fetchurl.nix Pass --insecure to curl so that https works 2012-07-09 15:49:20 -04:00
imported-drv-to-derivation.nix import: If the path is a valid .drv file, parse it and generate a derivation attrset. 2012-07-25 09:30:17 -04:00
Makefile.am import: If the path is a valid .drv file, parse it and generate a derivation attrset. 2012-07-25 09:30:17 -04:00
nar.nix Disable building in chroot for Nix's corepkgs 2012-05-09 22:14:36 -04:00
unpack-channel.nix Disable building in chroot for Nix's corepkgs 2012-05-09 22:14:36 -04:00
unpack-channel.sh If the (redirected) channel URL contains a version number, use it 2012-04-14 21:05:28 +02:00