Merge pull request #269592 from marsam/add-emacs-xapian-lite

emacsPackages.xapian-lite: init at 2.0.0
This commit is contained in:
adisbladis 2023-11-25 01:32:08 +13:00 committed by GitHub
commit e7acade1bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

View file

@ -93,6 +93,8 @@ in
wat-mode = callPackage ./manual-packages/wat-mode { };
xapian-lite = callPackage ./manual-packages/xapian-lite { };
yes-no = callPackage ./manual-packages/yes-no { };
youtube-dl = callPackage ./manual-packages/youtube-dl { };

View file

@ -0,0 +1,36 @@
{ lib, stdenv, emacs, fetchFromSourcehut, xapian }:
stdenv.mkDerivation (finalAttrs: {
pname = "xapian-lite";
version = "2.0.0";
src = fetchFromSourcehut {
owner = "~casouri";
repo = "xapian-lite";
rev = "v${finalAttrs.version}";
hash = "sha256-uFO5yxPHIUJjT3OV2hZKp7KgT3l73W95X2SAz6vhCpI=";
domain = "sr.ht";
};
preBuild = ''
rm emacs-module.h
'';
buildInputs = [ xapian emacs ];
installPhase = ''
runHook preInstall
install -Dm444 -t $out/share/emacs/site-lisp/ xapian-lite${stdenv.targetPlatform.extensions.sharedLibrary}
runHook postInstall
'';
meta = {
homepage = "https://git.sr.ht/~casouri/xapian-lite";
description = "A minimal Emacs dynamic module for Xapian";
maintainers = [ lib.maintainers.marsam ];
license = lib.licenses.gpl3Plus;
inherit (emacs.meta) platforms;
};
})