2021-07-17 21:14:59 +00:00
|
|
|
{ fetchurl, lib, stdenv, perl, perlPackages, makeWrapper }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-17 21:14:59 +00:00
|
|
|
pname = "namazu";
|
|
|
|
version = "2.0.21";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-17 21:14:59 +00:00
|
|
|
url = "http://namazu.org/stable/${pname}-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1xvi7hrprdchdpzhg3fvk4yifaakzgydza5c0m50h1yvg6vay62w";
|
|
|
|
};
|
|
|
|
|
2021-07-17 21:14:59 +00:00
|
|
|
buildInputs = [ perl perlPackages.FileMMagic ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-17 21:14:59 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/mknmz --set PERL5LIB ${perlPackages.makeFullPerlPath [ perlPackages.FileMMagic ]}
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://namazu.org/";
|
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
platforms = lib.platforms.gnu ++ lib.platforms.linux; # arbitrary choice
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ ];
|
|
|
|
};
|
|
|
|
}
|