From 95c74eae269b2b9e4bc514581b5caa1d80b54acc Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 27 Sep 2012 15:43:08 -0400 Subject: 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. --- doc/manual/release-notes.xml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/manual/release-notes.xml') diff --git a/doc/manual/release-notes.xml b/doc/manual/release-notes.xml index 0a69f43b1fc2..6fbd7c269c46 100644 --- a/doc/manual/release-notes.xml +++ b/doc/manual/release-notes.xml @@ -14,6 +14,11 @@ + + Dashes are now valid as part of identifiers and attribute + names. + + Nix no longer sets the immutable bit on files in the Nix store. Instead, the recommended way to guard the Nix store -- cgit 1.4.1