Merge pull request #269592 from marsam/add-emacs-xapian-lite
emacsPackages.xapian-lite: init at 2.0.0
This commit is contained in:
commit
e7acade1bb
2 changed files with 38 additions and 0 deletions
|
@ -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 { };
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
})
|
Loading…
Reference in a new issue