blob: 1b48776f7560638ab75ee2b576fb70586ade48c1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 = [ ];
license = lib.licenses.gpl3Plus;
inherit (emacs.meta) platforms;
};
})
|