mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
* Fix /bin/pwd and /bin/ls so that `firefox <filename>' works on
NixOS. svn path=/nixpkgs/trunk/; revision=9173
This commit is contained in:
parent
a6407349b1
commit
b5db5e6e61
1 changed files with 6 additions and 0 deletions
|
@ -6,6 +6,11 @@ postInstall() {
|
|||
# Strip some more stuff
|
||||
strip -S $out/lib/*/* || true
|
||||
|
||||
# Fix some references to /bin paths in the Firefox shell script.
|
||||
substituteInPlace $out/bin/firefox \
|
||||
--replace /bin/pwd "$(type -tP pwd)" \
|
||||
--replace /bin/ls "$(type -tP ls)"
|
||||
|
||||
# This fixes starting Firefox when there already is a running
|
||||
# instance. The `firefox' wrapper script actually expects to be
|
||||
# in the same directory as `run-mozilla.sh', apparently.
|
||||
|
@ -25,6 +30,7 @@ postInstall() {
|
|||
# Put the Firefox icon in the right place.
|
||||
ensureDir $out/lib/$libDir/chrome/icons/default
|
||||
ln -s ../../../icons/default.xpm $out/lib/$libDir/chrome/icons/default/
|
||||
|
||||
}
|
||||
|
||||
genericBuild
|
||||
|
|
Loading…
Reference in a new issue