mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01: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
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue