mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
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:
parent
59653b0453
commit
1e2ae6d818
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user