mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 05:31:22 +00:00
21 lines
438 B
Nix
21 lines
438 B
Nix
a :
|
|
a.stdenv.mkDerivation {
|
|
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
|
|
];
|
|
};
|
|
}
|