nixpkgs/pkgs/development/libraries/plib/default.nix
Bjørn Forsman c9baba9212 Fix many package descriptions
(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.
2014-08-24 22:31:37 +02:00

42 lines
1.3 KiB
Nix

{ fetchurl, stdenv, mesa, freeglut, SDL
, libXi, libSM, libXmu, libXext, libX11,
enablePIC ? false }:
stdenv.mkDerivation rec {
name = "plib-1.8.5";
src = fetchurl {
# XXX: The author doesn't use the orthodox SF way to store tarballs.
url = "http://plib.sourceforge.net/dist/${name}.tar.gz";
sha256 = "0cha71mflpa10vh2l7ipyqk67dq2y0k5xbafwdks03fwdyzj4ns8";
};
NIX_CFLAGS_COMPILE = if enablePIC then "-fPIC" else "";
propagatedBuildInputs = [
mesa freeglut SDL
# The following libs ought to be propagated build inputs of Mesa.
libXi libSM libXmu libXext libX11
];
meta = {
description = "A suite of portable game libraries";
longDescription = ''
PLIB includes sound effects, music, a complete 3D engine, font
rendering, a simple Windowing library, a game scripting
language, a GUI, networking, 3D math library and a collection of
handy utility functions. All are 100% portable across nearly
all modern computing platforms. What's more, it's all available
on line - and completely free. Each library component is fairly
independent of the others - so if you want to use SDL, GTK,
GLUT, or FLTK instead of PLIB's 'PW' windowing library, you can.
'';
license = stdenv.lib.licenses.lgpl2Plus;
homepage = http://plib.sourceforge.net/;
};
}