mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
fix #25511
This commit is contained in:
parent
42b3b7ab35
commit
d2f453bc0d
@ -29,15 +29,16 @@ stdenv.mkDerivation rec {
|
||||
|
||||
postInstall = stdenv.lib.optionalString mimiSupport ''
|
||||
cp ${mimisrc}/xdg-open $out/bin/xdg-open
|
||||
''
|
||||
+ ''
|
||||
for tool in "${coreutils}/bin/cut" "${gnused}/bin/sed" \
|
||||
"${gnugrep}"/bin/{e,}grep "${file}/bin/file" \
|
||||
${stdenv.lib.optionalString mimiSupport
|
||||
'' "${gawk}/bin/awk" "${coreutils}/bin/sort" ''} ;
|
||||
do
|
||||
sed "s# $(basename "$tool") # $tool #g" -i "$out"/bin/*
|
||||
done
|
||||
'' + ''
|
||||
sed '2s#.#\
|
||||
cut() { ${coreutils}/bin/cut "$@"; }\
|
||||
sed() { ${gnused}/bin/sed "$@"; }\
|
||||
grep() { ${gnugrep}/bin/grep "$@"; }\
|
||||
egrep() { ${gnugrep}/bin/egrep "$@"; }\
|
||||
file() { ${file}/bin/file "$@"; }\
|
||||
awk() { ${gawk}/bin/awk "$@"; }\
|
||||
sort() { ${coreutils}/bin/sort "$@"; }\
|
||||
&#' -i "$out"/bin/*
|
||||
|
||||
substituteInPlace $out/bin/xdg-open \
|
||||
--replace "/usr/bin/printf" "${coreutils}/bin/printf"
|
||||
|
Loading…
Reference in New Issue
Block a user