1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-18 00:12:43 +01:00

Offer suggestions for nix-env -i

Closes https://github.com/NixOS/nix/issues/972
This commit is contained in:
Alex Shabalin 2021-11-18 14:32:52 +01:00
parent 79f27500a4
commit 4b28798bfc
3 changed files with 113 additions and 65 deletions

View file

@ -42,7 +42,7 @@ DrvName::~DrvName()
{ }
bool DrvName::matches(DrvName & n)
bool DrvName::matches(const DrvName & n)
{
if (name != "*") {
if (!regex) {

View file

@ -19,7 +19,7 @@ struct DrvName
DrvName(std::string_view s);
~DrvName();
bool matches(DrvName & n);
bool matches(const DrvName & n);
private:
std::unique_ptr<Regex> regex;