c556a6ea46
function, so obsolete it. svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
20 lines
442 B
Nix
20 lines
442 B
Nix
a :
|
|
a.stdenv.mkDerivation rec {
|
|
buildCommand = ''
|
|
mkdir -p "$out/attributes"
|
|
|
|
'' + (a.lib.concatStrings (map
|
|
(n: ''
|
|
ln -s "${a.writeTextFile {name=n; text=builtins.getAttr n a.theAttrSet;}}" $out/attributes/${n};
|
|
'')
|
|
(builtins.attrNames a.theAttrSet)
|
|
));
|
|
|
|
name = "attribute-set";
|
|
meta = {
|
|
description = "Contents of an attribute set";
|
|
maintainers = [
|
|
a.lib.maintainers.raskin
|
|
];
|
|
};
|
|
}
|