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