mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 21:23:06 +00:00
fecc5d7bff
Manually remove trailing white spaces in `pkgs/**.nix` with the help of an editor Auto-generated nix expressions containing trailing whitespaces: * pkgs/development/haskell-modules/hackage-packages.nix * See issue https://github.com/NixOS/cabal2nix/issues/208 * pkgs/**/eggs.nix * I don't know how they are generated, but they seems to be Python-related.
20 lines
431 B
Nix
20 lines
431 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
|
|
];
|
|
};
|
|
}
|