2005-12-05 15:11:09 +01:00
|
|
|
source $stdenv/setup
|
2004-10-17 15:13:24 +02:00
|
|
|
|
|
|
|
# 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"
|
|
|
|
|
2006-12-27 19:24:26 +01:00
|
|
|
installCommand=myInstall
|
|
|
|
myInstall() {
|
|
|
|
ensureDir $out/lib/mozilla/plugins
|
2006-12-07 23:00:10 +01:00
|
|
|
cp -p mplayerplug-in*.so mplayerplug-in*.xpt $out/lib/mozilla/plugins
|
2004-10-17 15:13:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
genericBuild
|
|
|
|
|