mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
8b01d4ef0a
* Plugins can specify extra directories to be added to LD_LIBRARY_PATH by the Firefox wrapper. The Flash plugin need this since it's installed from a binary distribution, and so doesn't set the RPATH properly. * Moved the MPlayer plugin to a plugins directory. svn path=/nixpkgs/trunk/; revision=1566
25 lines
658 B
Bash
25 lines
658 B
Bash
. $stdenv/setup
|
|
|
|
# The Firefox pkgconfig files are buggy; they are called firefox-*.pc,
|
|
# but they refer to mozilla-*.pc. Also, mplayerplug-in requires
|
|
# mozilla-*.pc.
|
|
mkdir pkgconfig
|
|
for i in $firefox/lib/pkgconfig/*.pc; do
|
|
ln -s $i pkgconfig/$(echo $(basename $i) | sed s/firefox/mozilla/)
|
|
done
|
|
PKG_CONFIG_PATH=$NIX_BUILD_TOP/pkgconfig:$PKG_CONFIG_PATH
|
|
|
|
firefoxIncl=$(echo $firefox/include/firefox-*)
|
|
export NIX_CFLAGS_COMPILE="-I$firefoxIncl $NIX_CFLAGS_COMPILE"
|
|
|
|
dontMakeInstall=1
|
|
|
|
postInstall=postInstall
|
|
postInstall() {
|
|
mkdir -p $out/lib/mozilla/plugins
|
|
cp -p mplayerplug-in.so mplayerplug-in.xpt $out/lib/mozilla/plugins
|
|
}
|
|
|
|
genericBuild
|
|
|