xdg-utils: fix reference to mimetype

Before this change, xdg-open would impurely look up mimetype in the PATH. While
it would fall back to file if not found, mimetype gives decidedly better output
(e.g. text/csv instead of just text/plain).
This commit is contained in:
Sebastian Ullrich 2019-11-01 15:31:59 +01:00
parent 59653b0453
commit 1e2ae6d818

View File

@ -45,6 +45,7 @@ stdenv.mkDerivation rec {
sort() { ${coreutils}/bin/sort "$@"; }\
xset() { ${xset}/bin/xset "$@"; }\
perl() { PERL5LIB=${perlPath} ${perlPackages.perl}/bin/perl "$@"; }\
mimetype() { ${perlPackages.FileMimeInfo}/bin/mimetype "$@"; }\
&#' -i "$out"/bin/*
substituteInPlace $out/bin/xdg-open \