mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
5a6e313abf
svn path=/nixpkgs/trunk/; revision=16816
21 lines
443 B
Nix
21 lines
443 B
Nix
a :
|
|
a.stdenv.mkDerivation rec {
|
|
buildCommand = ''
|
|
ensureDir "$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
|
|
];
|
|
};
|
|
}
|