From 88632b78010a8807b3d4200a29ac1c0248eabd31 Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Fri, 1 Jan 2021 16:25:27 -0800 Subject: [PATCH] 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 ab7aa204653..a48c077f53a 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;