blob: a5f06efa33cc28d3971c652e4923c6bde542e610 (
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
37
38
39
40
41
42
|
{ lib
, stdenv
, fetchFromGitHub
, emacs
}:
stdenv.mkDerivation rec {
pname = "apheleia";
version = "0.0.0+unstable=2021-08-08";
src = fetchFromGitHub {
owner = "raxod502";
repo = pname;
rev = "8e022c67fea4248f831c678b31c19646cbcbbf6f";
hash = "sha256-Put/BBQ7V423C18UIVfaM17T+TDWtAxRZi7WI8doPJw=";
};
buildInputs = [
emacs
];
buildPhase = ''
runHook preBuild
emacs -L . --batch -f batch-byte-compile *.el
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -d $out/share/emacs/site-lisp
install *.el *.elc $out/share/emacs/site-lisp
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/raxod502/apheleia";
description = "Asynchronous buffer reformat";
license = licenses.mit;
maintainers = with maintainers; [ AndersonTorres leungbk ];
platforms = emacs.meta.platforms;
};
}
|