mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
* Added xulrunner 1.8.0.1
* Added a basic wrapper generator for xulrunner * Chatzilla running in xulrunner svn path=/nixpkgs/trunk/; revision=4809
This commit is contained in:
parent
5bacf0f069
commit
04767dfdd9
5
pkgs/applications/networking/irc/chatzilla/builder.sh
Executable file
5
pkgs/applications/networking/irc/chatzilla/builder.sh
Executable file
@ -0,0 +1,5 @@
|
||||
source $stdenv/setup
|
||||
|
||||
ensureDir $out
|
||||
unzip $src -d $out
|
||||
|
12
pkgs/applications/networking/irc/chatzilla/default.nix
Normal file
12
pkgs/applications/networking/irc/chatzilla/default.nix
Normal file
@ -0,0 +1,12 @@
|
||||
{stdenv, fetchurl, unzip}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "chatzilla-0.9.70";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = http://rdmsoft.com/dlfs/cz/chatzilla-0.9.70-xr.zip;
|
||||
md5 = "543ab121916b8c4bfe20d4aa07536e35";
|
||||
};
|
||||
|
||||
buildInputs = [unzip];
|
||||
}
|
23
pkgs/development/interpreters/xulrunner/builder.sh
Normal file
23
pkgs/development/interpreters/xulrunner/builder.sh
Normal file
@ -0,0 +1,23 @@
|
||||
source $stdenv/setup
|
||||
|
||||
postInstall=postInstall
|
||||
postInstall() {
|
||||
strip -S $out/lib/*/* || true
|
||||
|
||||
# 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.
|
||||
cd $out/bin
|
||||
mv xulrunner ../lib/xulrunner-*/
|
||||
ln -s ../lib/xulrunner-*/xulrunner .
|
||||
|
||||
echo "running xulrunner --register-global..."
|
||||
$out/bin/xulrunner --register-global || true
|
||||
|
||||
# xulrunner wants to create these directories at the first startup
|
||||
cd $out
|
||||
ensureDir ./lib/xulrunner-*/extensions
|
||||
ensureDir ./lib/xulrunner-*/updates
|
||||
}
|
||||
|
||||
genericBuild
|
29
pkgs/development/interpreters/xulrunner/default.nix
Normal file
29
pkgs/development/interpreters/xulrunner/default.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{stdenv, fetchurl, pkgconfig, gtk, perl, zip, libIDL, libXi}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "xulrunner-1.8.0.1";
|
||||
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/1.8.0.1/source/xulrunner-1.8.0.1-source.tar.bz2;
|
||||
md5 = "d60ccb6cc28afa7d880c8602a2c88450";
|
||||
};
|
||||
|
||||
buildInputs = [pkgconfig gtk perl zip libIDL libXi];
|
||||
configureFlags = [
|
||||
"--enable-application=xulrunner"
|
||||
"--enable-optimize"
|
||||
"--disable-debug"
|
||||
"--enable-xft"
|
||||
"--disable-freetype2"
|
||||
"--enable-swg"
|
||||
"--enable-strip"
|
||||
"--enable-default-toolkit=gtk2"
|
||||
"--with-system-jpeg"
|
||||
"--with-system-png"
|
||||
"--with-system-zlib"
|
||||
"--disable-gnomevfs"
|
||||
"--disable-gnomeui"
|
||||
"--disable-javaxpcom"
|
||||
];
|
||||
}
|
11
pkgs/development/interpreters/xulrunner/wrapper/builder.sh
Normal file
11
pkgs/development/interpreters/xulrunner/wrapper/builder.sh
Normal file
@ -0,0 +1,11 @@
|
||||
source $stdenv/setup
|
||||
|
||||
ensureDir $out/bin
|
||||
|
||||
wrapper="$out/bin/$launcher"
|
||||
|
||||
echo "#! $SHELL -e" > $wrapper
|
||||
echo "" >> $wrapper
|
||||
echo "$xulrunner/bin/xulrunner $appfile \"\$@\"" >> $wrapper
|
||||
|
||||
chmod +x $wrapper
|
@ -0,0 +1,9 @@
|
||||
{stdenv, xulrunner, application, launcher}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = application.name;
|
||||
|
||||
builder = ./builder.sh;
|
||||
inherit xulrunner launcher;
|
||||
appfile = application ~ "application.ini";
|
||||
}
|
@ -1842,6 +1842,18 @@ rec {
|
||||
inherit (xlibs) libXi;
|
||||
};
|
||||
|
||||
xulrunner = (import ../development/interpreters/xulrunner) {
|
||||
inherit fetchurl stdenv pkgconfig perl zip;
|
||||
inherit (gtkLibs) gtk;
|
||||
inherit (gnome) libIDL;
|
||||
inherit (xlibs) libXi;
|
||||
};
|
||||
|
||||
xulrunnerWrapper = {application, launcher}:
|
||||
(import ../development/interpreters/xulrunner/wrapper) {
|
||||
inherit stdenv xulrunner application launcher;
|
||||
};
|
||||
|
||||
wrapFirefox = firefox: (import ../applications/networking/browsers/firefox-wrapper) {
|
||||
inherit stdenv firefox;
|
||||
plugins = [
|
||||
@ -1905,6 +1917,14 @@ rec {
|
||||
inherit (gtkLibs) glib gtk;
|
||||
};
|
||||
|
||||
chatzilla =
|
||||
xulrunnerWrapper {
|
||||
launcher = "chatzilla";
|
||||
application = (import ../applications/networking/irc/chatzilla) {
|
||||
inherit fetchurl stdenv unzip;
|
||||
};
|
||||
};
|
||||
|
||||
rsync = (import ../applications/networking/sync/rsync) {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
@ -21,6 +21,7 @@ let {
|
||||
bsdiff
|
||||
bzip2
|
||||
callgrind
|
||||
chatzilla
|
||||
cksfv
|
||||
coreutils
|
||||
darcs
|
||||
@ -114,6 +115,7 @@ let {
|
||||
xmms
|
||||
xorg_sys_opengl
|
||||
xsel
|
||||
xulrunner
|
||||
zapping
|
||||
zdelta
|
||||
zip
|
||||
|
Loading…
Reference in New Issue
Block a user