blob: 82c3f9056d35196dd3b1b719ac7f26d7fa215c80 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{ lib
, stdenv
, fetchFromGitHub
, groff
, makeWrapper
, ncurses
, runtimeShell
}:
stdenv.mkDerivation (finalAttrs: {
pname = "jove";
version = "4.17.5.3";
src = fetchFromGitHub {
owner = "jonmacs";
repo = "jove";
rev = finalAttrs.version;
hash = "sha256-ZBq2zCml637p9VgedpOrUn2jSc5L0pthdgRS7YsB3zs=";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [
groff
ncurses
];
postPatch = ''
patchShebangs testbuild.sh testmailer.sh teachjove jmake.sh
'';
dontConfigure = true;
preBuild = ''
makeFlagsArray+=(SYSDEFS="-DSYSVR4 -D_XOPEN_SOURCE=500" \
JTMPDIR=$TMPDIR
TERMCAPLIB=-lncurses \
SHELL=${runtimeShell} \
DFLTSHELL=${runtimeShell} \
JOVEHOME=${placeholder "out"})
'';
postInstall = ''
wrapProgram $out/bin/teachjove \
--prefix PATH ":" "$out/bin"
'';
meta = {
homepage = "https://github.com/jonmacs/jove";
description = "Jonathan's Own Version of Emacs";
changelog = "https://github.com/jonmacs/jove/releases/tag/${finalAttrs.version}";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.unix;
# never built on Hydra: https://hydra.nixos.org/job/nixpkgs/trunk/jove.x86_64-darwin
broken = stdenv.isDarwin;
};
})
|