From 88632b78010a8807b3d4200a29ac1c0248eabd31 Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Fri, 1 Jan 2021 16:25:27 -0800 Subject: [PATCH 1/2] nixos/command-not-found: don't suggest nix-env --- .../programs/command-not-found/command-not-found.pl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 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 ab7aa204653c..a48c077f53a8 100644 --- a/nixos/modules/programs/command-not-found/command-not-found.pl +++ b/nixos/modules/programs/command-not-found/command-not-found.pl @@ -36,16 +36,17 @@ EOF exec("nix-shell", "-p", $package, "--run", shell_quote("exec", @ARGV)); } else { print STDERR <{package}\n" foreach @$res; + print STDERR " nix-shell -p $_->{package}\n" foreach @$res; } exit 127; From e4cd9a8f043cb6f10f56da4bc08896cd22b0a10f Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Fri, 1 Jan 2021 20:04:28 -0800 Subject: [PATCH 2/2] nixos/command-not-found: don't use fancy quotes --- .../programs/command-not-found/command-not-found.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 a48c077f53a8..63c4925d4333 100644 --- a/nixos/modules/programs/command-not-found/command-not-found.pl +++ b/nixos/modules/programs/command-not-found/command-not-found.pl @@ -27,8 +27,8 @@ if (!defined $res || scalar @$res == 0) { my $package = @$res[0]->{package}; if ($ENV{"NIX_AUTO_INSTALL"} // "") { print STDERR <{package}\n" foreach @$res;