2008-06-16 15:15:09 +02:00
|
|
|
args : with args;
|
2008-07-04 08:52:44 +02:00
|
|
|
/*
|
|
|
|
arguments: all buildInputs
|
|
|
|
optional: purple2Source: purple-2 source - place to copy libpurple from
|
|
|
|
(to use a fresher pidgin build)
|
|
|
|
*/
|
2008-08-20 13:21:58 +02:00
|
|
|
let
|
2009-05-24 12:57:41 +02:00
|
|
|
externalPurple2 = lib.attrByPath ["purple2Source"] null args) != null;
|
2008-08-20 13:21:58 +02:00
|
|
|
in
|
2008-06-16 15:15:09 +02:00
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://downloads.sourceforge.net/funpidgin/carrier-2.4.2.tar.bz2;
|
|
|
|
sha256 = "176mi7gxkvvrmxsd58bi8qgkc209gpnlp21hh3j0dmb9zszyh7kp";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [gtkspell aspell
|
|
|
|
GStreamer startupnotification
|
|
|
|
libxml2 openssl nss
|
|
|
|
libXScrnSaver ncurses scrnsaverproto
|
|
|
|
libX11 xproto kbproto GConf avahi
|
|
|
|
dbus dbus_glib glib python
|
|
|
|
autoconf libtool automake];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pkgconfig gtk perl perlXMLParser gettext
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags="--with-nspr-includes=${nss}/include/nspr"
|
|
|
|
+ " --with-nspr-libs=${nss}/lib --with-nss-includes=${nss}/include/nss"
|
|
|
|
+ " --with-nss-libs=${nss}/lib --with-ncurses-headers=${ncurses}/include"
|
|
|
|
+ " --enable-screensaver --disable-meanwhile --disable-nm --disable-tcl";
|
|
|
|
|
2009-05-20 01:25:58 +02:00
|
|
|
preBuild = fullDepEntry (''
|
2008-06-16 15:15:09 +02:00
|
|
|
export echo=echo
|
|
|
|
'') [];
|
|
|
|
|
|
|
|
/* doConfigure should be specified separately */
|
2008-07-04 08:52:44 +02:00
|
|
|
phaseNames = ["doConfigure" "preBuild" "doMakeInstall"]
|
2008-08-20 13:21:58 +02:00
|
|
|
++ (lib.optional externalPurple2 "postInstall")
|
2008-07-04 08:52:44 +02:00
|
|
|
;
|
2008-06-16 15:15:09 +02:00
|
|
|
|
|
|
|
name = "carrier-" + version;
|
|
|
|
meta = {
|
|
|
|
description = "Carrier - PidginIM GUI fork with user-friendly development model";
|
|
|
|
homepage = http://funpidgin.sf.net;
|
|
|
|
};
|
2008-08-20 13:21:58 +02:00
|
|
|
} // (if externalPurple2 then {
|
2009-05-20 01:25:58 +02:00
|
|
|
postInstall = fullDepEntry (''
|
2008-08-20 13:21:58 +02:00
|
|
|
ensureDir $out/lib/purple-2
|
|
|
|
cp ${args.purple2Source}/lib/purple-2/* $out/lib/purple-2/
|
|
|
|
'') ["minInit" "defEnsureDir"]; }
|
|
|
|
else {})
|
|
|
|
|
2008-06-16 15:15:09 +02:00
|
|
|
|