[Nix-dev] Google web fonts import

Marc Weber marco-oweber at gmx.de
Mon Jun 25 17:42:46 CEST 2012


Excerpts from Eelco Dolstra's message of Mon Jun 25 17:31:47 +0200 2012:
> Why?  Unless you frequently want to pass all fonts around (like you might pass
> "xorg" as an input), grouping things into a set is not particularly useful.

Why? Because you can do something like "install all fonts" by getting
attr values of that attr - and to keep similar thing nearby each other.

Having fonts spread all over all-packages.nix is not very readable.

If you want to access attrs by name use exuberant ctags
http://nixos.org/wiki/Howto_find_a_package_in_NixOS

It also reduces the likelyhood that font names collide with other
package names which happen to have the same name such as

  andagii = callPackage ../data/fonts/andagii {};

Why do some fonts have the suffix _font?

That's another way to create separate namespaces - having an attr set is
the cleaner way IMHO.

Marc Weber


More information about the nix-dev mailing list