2009-08-23 23:10:08 +01:00
|
|
|
a :
|
2019-08-13 22:52:01 +01:00
|
|
|
a.stdenv.mkDerivation {
|
2009-08-23 23:10:08 +01:00
|
|
|
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
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|