Find a file
Eelco Dolstra 95c74eae26 Allow dashes in identifiers
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.
2012-09-27 15:49:20 -04:00
corepkgs
doc Allow dashes in identifiers 2012-09-27 15:49:20 -04:00
misc Allow dashes in identifiers 2012-09-27 15:49:20 -04:00
perl
scripts
src Allow dashes in identifiers 2012-09-27 15:49:20 -04:00
tests Allow dashes in identifiers 2012-09-27 15:49:20 -04:00
.gitignore
AUTHORS
bootstrap.sh
build.nix
configure.ac
COPYING
INSTALL
Makefile.am
nix.spec.in
README
release.nix
substitute.mk
version

Nix is a purely functional package manager.  For installation and
usage instructions, please read the manual, which can be found in
`docs/manual/manual.html', and additionally at the Nix website at
<http://nixos.org/>.


Acknowledgments

This product includes software developed by the OpenSSL Project for
use in the OpenSSL Toolkit (http://www.OpenSSL.org/).