2009-08-23 23:10:08 +01:00
|
|
|
a :
|
|
|
|
a.stdenv.mkDerivation rec {
|
|
|
|
buildCommand = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p "$out/attributes"
|
2009-08-23 23:10:08 +01:00
|
|
|
|
|
|
|
'' + (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
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|