2021-01-15 13:21:58 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2021-01-02 10:43:19 +00:00
|
|
|
, groff
|
|
|
|
, ncurses
|
|
|
|
, makeWrapper
|
|
|
|
} :
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "jove";
|
2022-07-28 16:46:34 +00:00
|
|
|
version = "4.17.4.6";
|
2021-01-02 10:43:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jonmacs";
|
|
|
|
repo = "jove";
|
|
|
|
rev = version;
|
2022-07-28 16:46:34 +00:00
|
|
|
sha256 = "sha256-UCjqF0i43TSvtG5uxb2SA/F9oGBeo/WdEVJlrSSHV8g=";
|
2021-01-02 10:43:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [
|
|
|
|
groff
|
|
|
|
ncurses
|
|
|
|
];
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray+=(SYSDEFS="-DSYSVR4 -D_XOPEN_SOURCE=500" \
|
|
|
|
TERMCAPLIB=-lncurses JOVEHOME=${placeholder "out"})
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/teachjove \
|
|
|
|
--prefix PATH ":" "$out/bin"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
meta = with lib; {
|
2022-02-05 11:42:02 +00:00
|
|
|
description = "Jonathan's Own Version of Emacs";
|
2021-01-02 10:43:19 +00:00
|
|
|
homepage = "https://github.com/jonmacs/jove";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
platforms = platforms.unix;
|
2022-01-20 17:15:12 +00:00
|
|
|
broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/jove.x86_64-darwin
|
2021-01-02 10:43:19 +00:00
|
|
|
};
|
|
|
|
}
|