[Nix-dev] Google web fonts import

Marc Weber marco-oweber at gmx.de
Sun Jun 24 20:01:31 CEST 2012


> Ok, guys, let's be honest. Nix needs something like categories.

What if you have a python library which is also a compiler?
Put into category "compilers" or "python-library"?

Thus do you want to assign multiple categories to a package?

> suffixes in package names are not a good solution.
Depends on your usage. Because all fonts are in a fonts/ directory in
all-packages using grep 'name =' in that dir would be enough to get all
names.

If you use something like
  nix-env -qa \* -P -f $NIXPKGS_ALL

to list all package names a prefix can be convenient.
(See wiki "how to find the package you're looking for")

So in the end it depends on how you search for packages first.

If you're looking for packages to uninstall eg by nix-env -qa \*
having a font-, python-, ruby- prefix can be helpful, too.

The attr path is not encoded in the final derivation which gets
instantiated - only the name is - thus some duplication can make sense.

Marc Weber


More information about the nix-dev mailing list