Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
842 B
Nix
44 lines
842 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
pkg-config,
|
|
xapian,
|
|
perl,
|
|
pcre2,
|
|
zlib,
|
|
libmagic,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "xapian-omega";
|
|
inherit (xapian) version;
|
|
|
|
src = fetchurl {
|
|
url = "https://oligarchy.co.uk/xapian/${version}/xapian-omega-${version}.tar.xz";
|
|
hash = "sha256-HRk7MoXsFQVXJXsEnuHYyUxAvN6QbOC6fxo4oamlpcE=";
|
|
};
|
|
|
|
buildInputs = [
|
|
xapian
|
|
perl
|
|
pcre2
|
|
zlib
|
|
libmagic
|
|
];
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/share/omega
|
|
cp -r templates $out/share/omega
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Indexer and CGI search front-end built on Xapian library";
|
|
homepage = "https://xapian.org/";
|
|
changelog = "https://xapian.org/docs/xapian-omega-${version}/NEWS";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|