forked from mirrors/nixpkgs
c9baba9212
(My OCD kicked in today...) Remove repeated package names, capitalize first word, remove trailing periods and move overlong descriptions to longDescription. I also simplified some descriptions as well, when they were particularly long or technical, often based on Arch Linux' package descriptions. I've tried to stay away from generated expressions (and I think I succeeded). Some specifics worth mentioning: * cron, has "Vixie Cron" in its description. The "Vixie" part is not mentioned anywhere else. I kept it in a parenthesis at the end of the description. * ctags description started with "Exuberant Ctags ...", and the "exuberant" part is not mentioned elsewhere. Kept it in a parenthesis at the end of description. * nix has the description "The Nix Deployment System". Since that doesn't really say much what it is/does (especially after removing the package name!), I changed that to "Powerful package manager that makes package management reliable and reproducible" (borrowed from nixos.org). * Tons of "GNU Foo, Foo is a [the important bits]" descriptions is changed to just [the important bits]. If the package name doesn't contain GNU I don't think it's needed to say it in the description either.
55 lines
1.6 KiB
Nix
55 lines
1.6 KiB
Nix
args : with args;
|
|
/*
|
|
arguments: all buildInputs
|
|
optional: purple2Source: purple-2 source - place to copy libpurple from
|
|
(to use a fresher pidgin build)
|
|
*/
|
|
let
|
|
externalPurple2 = (lib.attrByPath ["purple2Source"] null args) != null;
|
|
in
|
|
rec {
|
|
src = fetchurl {
|
|
url = mirror://sourceforge/funpidgin/carrier-2.5.0.tar.bz2;
|
|
sha256 = "0m80s7hnvz5vc2dy3xiy1zfb6incmb7p28zahzxdif2vz44riz28";
|
|
};
|
|
|
|
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";
|
|
|
|
preBuild = fullDepEntry (''
|
|
export echo=echo
|
|
'') [];
|
|
|
|
/* doConfigure should be specified separately */
|
|
phaseNames = ["doConfigure" "preBuild" "doMakeInstall"]
|
|
++ (lib.optional externalPurple2 "postInstall")
|
|
;
|
|
|
|
name = "carrier-2.5.0";
|
|
meta = {
|
|
description = "PidginIM GUI fork with user-friendly development model";
|
|
homepage = http://funpidgin.sf.net;
|
|
};
|
|
} // (if externalPurple2 then {
|
|
postInstall = fullDepEntry (''
|
|
mkdir -p $out/lib/purple-2
|
|
cp ${args.purple2Source}/lib/purple-2/* $out/lib/purple-2/
|
|
'') ["minInit" "defEnsureDir"]; }
|
|
else {})
|
|
|
|
|