mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
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.
45 lines
1.3 KiB
Nix
45 lines
1.3 KiB
Nix
{ fetchurl, stdenv, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "namazu-2.0.21";
|
|
|
|
src = fetchurl {
|
|
url = "http://namazu.org/stable/${name}.tar.gz";
|
|
sha256 = "1xvi7hrprdchdpzhg3fvk4yifaakzgydza5c0m50h1yvg6vay62w";
|
|
};
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
# First install the `File::MMagic' Perl module.
|
|
# !!! this shouldn't refer to Perl 5.10.0!
|
|
preConfigure = ''
|
|
( cd File-MMagic && \
|
|
perl Makefile.PL \
|
|
LIB="$out/lib/perl5/site_perl/5.10.0" \
|
|
INSTALLSITEMAN3DIR="$out/man" && \
|
|
make && make install )
|
|
export PERL5LIB="$out/lib/perl5/site_perl/5.10.0:$PERL5LIB"
|
|
'';
|
|
|
|
# FIXME: The `tests/namazu-6' test fails on GNU/Linux, presumably because
|
|
# phrase searching is broken somehow. However, it doesn't fail on other
|
|
# platforms.
|
|
doCheck = !stdenv.isLinux;
|
|
|
|
meta = {
|
|
description = "Full-text search engine";
|
|
|
|
longDescription = ''
|
|
Namazu is a full-text search engine intended for easy use. Not
|
|
only does it work as a small or medium scale Web search engine,
|
|
but also as a personal search system for email or other files.
|
|
'';
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
homepage = http://namazu.org/;
|
|
|
|
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
|
|
maintainers = [ ];
|
|
};
|
|
}
|