forked from mirrors/nixpkgs
xdg_utils: fixing some of the impurities in xdg-utilso, #8377
This commit is contained in:
parent
2a07d430bd
commit
ca407f3738
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue