about summary refs log tree commit diff
path: root/corepkgs/imported-drv-to-derivation.nix (follow)
AgeCommit message (Collapse)AuthorFilesLines
2015-07-23 Importing derivations: Add name attribute to make a valid drvShea Levy1-2/+2
2012-07-25 import: If the path is a valid .drv file, parse it and generate a derivation ↵Shea Levy1-0/+21
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