2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2021-01-15 22:18:51 +00:00
|
|
|
, groff
|
|
|
|
, makeWrapper
|
2022-12-17 10:02:37 +00:00
|
|
|
, ncurses
|
2023-07-15 17:15:38 +00:00
|
|
|
, runtimeShell
|
2022-12-17 10:02:37 +00:00
|
|
|
}:
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-01-15 22:18:51 +00:00
|
|
|
pname = "jove";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "4.17.5.3";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jonmacs";
|
|
|
|
repo = "jove";
|
2022-12-17 10:02:37 +00:00
|
|
|
rev = finalAttrs.version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-ZBq2zCml637p9VgedpOrUn2jSc5L0pthdgRS7YsB3zs=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2022-12-17 10:02:37 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
buildInputs = [
|
|
|
|
groff
|
|
|
|
ncurses
|
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs testbuild.sh testmailer.sh teachjove jmake.sh
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray+=(SYSDEFS="-DSYSVR4 -D_XOPEN_SOURCE=500" \
|
2023-07-15 17:15:38 +00:00
|
|
|
JTMPDIR=$TMPDIR
|
|
|
|
TERMCAPLIB=-lncurses \
|
|
|
|
SHELL=${runtimeShell} \
|
|
|
|
DFLTSHELL=${runtimeShell} \
|
|
|
|
JOVEHOME=${placeholder "out"})
|
2021-01-15 22:18:51 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/teachjove \
|
|
|
|
--prefix PATH ":" "$out/bin"
|
|
|
|
'';
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
meta = {
|
2021-01-15 22:18:51 +00:00
|
|
|
homepage = "https://github.com/jonmacs/jove";
|
2022-12-17 10:02:37 +00:00
|
|
|
description = "Jonathan's Own Version of Emacs";
|
|
|
|
changelog = "https://github.com/jonmacs/jove/releases/tag/${finalAttrs.version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
|
|
platforms = lib.platforms.unix;
|
2022-12-17 10:02:37 +00:00
|
|
|
# never built on Hydra: https://hydra.nixos.org/job/nixpkgs/trunk/jove.x86_64-darwin
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
2022-12-17 10:02:37 +00:00
|
|
|
})
|