forked from lix-project/lix
95c74eae26
In Nixpkgs, the attribute in all-packages.nix corresponding to a package is usually equal to the package name. However, this doesn't work if the package contains a dash, which is fairly common. The convention is to replace the dash with an underscore (e.g. "dbus-lib" becomes "dbus_glib"), but that's annoying. So now dashes are valid in variable / attribute names, allowing you to write: dbus-glib = callPackage ../development/libraries/dbus-glib { }; and buildInputs = [ dbus-glib ]; Since we don't have a negation or subtraction operation in Nix, this is unambiguous. |
||
---|---|---|
.. | ||
figures | ||
bugs.xml | ||
build-farm.xml | ||
builtins.xml | ||
conf-file.xml | ||
env-common.xml | ||
glossary.xml | ||
installation.xml | ||
introduction.xml | ||
Makefile.am | ||
manual.xml | ||
nix-build.xml | ||
nix-channel.xml | ||
nix-collect-garbage.xml | ||
nix-copy-closure.xml | ||
nix-env.xml | ||
nix-hash.xml | ||
nix-install-package.xml | ||
nix-instantiate.xml | ||
nix-lang-ref.xml | ||
nix-prefetch-url.xml | ||
nix-pull.xml | ||
nix-push.xml | ||
nix-store.xml | ||
nix-worker.xml | ||
opt-common-syn.xml | ||
opt-common.xml | ||
opt-inst-syn.xml | ||
package-management.xml | ||
quick-start.xml | ||
quote-literals.xsl | ||
release-notes.xml | ||
schemas.xml | ||
style.css | ||
troubleshooting.xml | ||
writing-nix-expressions.xml |