mirror of
https://github.com/NixOS/nix
synced 2025-07-07 22:33:57 +02:00
nix-env: Add regular expression support in selectors
So you can now do things like: $ nix-env -qa '.*zip.*' $ nix-env -qa '.*(firefox|chromium).*'
This commit is contained in:
parent
3800f441e4
commit
104e55bb7f
5 changed files with 165 additions and 23 deletions
|
@ -8,6 +8,16 @@
|
|||
|
||||
<itemizedlist>
|
||||
|
||||
<listitem><para><command>nix-env</command> selectors are now regular
|
||||
expressions. For instance, you can do
|
||||
|
||||
<screen>
|
||||
$ nix-env -qa '.*zip.*'
|
||||
</screen>
|
||||
|
||||
to query all packages with a name containing
|
||||
<literal>zip</literal>.</para></listitem>
|
||||
|
||||
<listitem><para>Derivations can specify the new special attribute
|
||||
<varname>allowedRequisites</varname>, which has a similar meaning to
|
||||
<varname>allowedReferences</varname>. But instead of only enforcing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue