diff options
author | Rok Garbas <rok@garbas.si> | 2015-06-18 10:51:35 +0200 |
---|---|---|
committer | Rok Garbas <rok@garbas.si> | 2015-06-18 10:51:35 +0200 |
commit | ca407f3738b5f534afed739434de9ec785cfd5b1 (patch) | |
tree | 746c0a298b6ee9cd667f824d378ae3d560989457 /pkgs/tools | |
parent | 2a07d430bd9c5165dee52a9056f4c1f755d4b7f6 (diff) |
xdg_utils: fixing some of the impurities in xdg-utilso, #8377
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/X11/xdg-utils/default.nix | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/tools/X11/xdg-utils/default.nix b/pkgs/tools/X11/xdg-utils/default.nix index 53b3531b685c..5f5619002d61 100644 --- a/pkgs/tools/X11/xdg-utils/default.nix +++ b/pkgs/tools/X11/xdg-utils/default.nix @@ -1,4 +1,5 @@ -{ stdenv, fetchgit, file, libxslt, docbook_xml_dtd_412, docbook_xsl, xmlto, w3m }: +{ stdenv, fetchgit, file, libxslt, docbook_xml_dtd_412, docbook_xsl, xmlto +, w3m, which, gnugrep, gnused, coreutils }: stdenv.mkDerivation rec { name = "xdg-utils-1.1.0-rc3p7"; @@ -13,7 +14,14 @@ stdenv.mkDerivation rec { buildInputs = [ libxslt docbook_xml_dtd_412 docbook_xsl xmlto w3m ]; postInstall = '' - substituteInPlace $out/bin/xdg-mime --replace /usr/bin/file ${file}/bin/file + for item in $out/bin/*; do + substituteInPlace $item --replace "cut " "${coreutils}/bin/cut " + substituteInPlace $item --replace "sed " "${gnused}/bin/sed " + substituteInPlace $item --replace "grep " "${gnugrep}/bin/grep " + substituteInPlace $item --replace "egrep " "${gnugrep}/bin/egrep " + substituteInPlace $item --replace "which " "${which}/bin/which " + substituteInPlace $item --replace "/usr/bin/file" "${file}/bin/file" + done ''; meta = { |