command-not-found: update from nixpkgs

This commit is contained in:
Sandro Jäckel 2021-06-20 20:40:37 +02:00
parent a73e619377
commit cd11c02c28
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5
2 changed files with 8 additions and 12 deletions

View file

@ -11,13 +11,8 @@ let
dir = "bin";
src = ./command-not-found.pl;
isExecutable = true;
inherit (pkgs) perl;
inherit (cfg) dbPath;
perlFlags = concatStrings (map (path: "-I ${path}/lib/perl5/site_perl ") [
pkgs.perlPackages.DBI
pkgs.perlPackages.DBDSQLite
pkgs.perlPackages.StringShellQuote
]);
perl = pkgs.perl.withPackages (p: [ p.DBDSQLite p.StringShellQuote ]);
};
shInit = commandNotFoundHandlerName: ''