From 21fd69710ad263502ad485aafcb3d57fd89747b6 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Tue, 1 Jun 2021 17:24:02 +0200 Subject: [PATCH] perlPackages.FileMimeInfo: Add missing dependency Since version 0.30 (2020-10-26), FileMimeInfo depends on Encode::Locale (see https://metacpan.org/changes/distribution/File-MimeInfo). Without having this dependency in Nix, mimetype command fails, which can result in xdg-mime not working properly. Specifically, under generic desktop environments (i3 in my case), xdg-mime tries to use the mimetype command, which fails. Then xdg-mime falls back to using the file command, which often does not detect the mime type correctly. --- pkgs/top-level/perl-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 7bcdf6190c85..bf87eb380d98 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -8092,7 +8092,7 @@ let sha256 = "0wm87gpagb35d7c4nyaf9z3ry0jb3g5xpyjfzcxqcfxyj2zy9ip2"; }; doCheck = false; # Failed test 'desktop file is the right one' - buildInputs = [ FileBaseDir FileDesktopEntry ]; + buildInputs = [ FileBaseDir FileDesktopEntry EncodeLocale ]; }; FileMMagic = buildPerlPackage {