diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-09-02 17:40:19 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-09-02 17:40:19 +0200 |
commit | 13532ee161c4f0b2d26365bf94403f48a4ada8c7 (patch) | |
tree | 8c386cbac09dd2f2449d28af894b8024dc0f6b4a /nixos/modules/programs/command-not-found | |
parent | 14321ae2431e33f5ed81f1ee43eddd29c7e9d01d (diff) |
command-not-found: Use attribute name
Diffstat (limited to 'nixos/modules/programs/command-not-found')
-rw-r--r-- | nixos/modules/programs/command-not-found/command-not-found.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/programs/command-not-found/command-not-found.pl b/nixos/modules/programs/command-not-found/command-not-found.pl index 916649059d37..621b79d16543 100644 --- a/nixos/modules/programs/command-not-found/command-not-found.pl +++ b/nixos/modules/programs/command-not-found/command-not-found.pl @@ -30,11 +30,11 @@ The program ‘$program’ is currently not installed. It is provided by the package ‘$package’, which I will now install for you. EOF ; - exit 126 if system("nix-env", "-i", $package) == 0; + exit 126 if system("nix-env", "-iA", $package) == 0; } else { print STDERR <<EOF; The program ‘$program’ is currently not installed. You can install it by typing: - nix-env -i $package + nix-env -iA $package EOF } } else { @@ -42,7 +42,7 @@ EOF The program ‘$program’ is currently not installed. It is provided by several packages. You can install it by typing one of the following: EOF - print STDERR " nix-env -i $_->{package}\n" foreach @$res; + print STDERR " nix-env -iA $_->{package}\n" foreach @$res; } exit 127; |