From 13532ee161c4f0b2d26365bf94403f48a4ada8c7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 2 Sep 2015 17:40:19 +0200 Subject: [PATCH] command-not-found: Use attribute name --- .../modules/programs/command-not-found/command-not-found.pl | 6 +++--- 1 file 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 <{package}\n" foreach @$res; + print STDERR " nix-env -iA $_->{package}\n" foreach @$res; } exit 127;