[Nix-dev] Multiple packages from one source package

Ludovic Courtès ludo at gnu.org
Fri Nov 2 16:26:56 CET 2007


Hi,

Is there a way to produce several (binary) packages from one source
package?

It's not uncommon in Debian (or other binary distros) to have a source
package yield multiple binary packages, e.g., `libfoo', `libfoo-dev',
`foo-utils', `python-foo', etc.  The advantage is that the set of
run-time dependencies of these individual packages is smaller than that
of the original source package.

AIUI, there's a one-to-one mapping between pre-built packages pushed to
channels and source packages.  IOW, there's always one store path per
source package.  Actually, it's one store path per Nix expression, but
there's only one Nix expression per package, right?

Thanks,
Ludovic.




More information about the nix-dev mailing list