2021-01-17 00:15:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2021-01-15 22:18:51 +00:00
|
|
|
, groff
|
|
|
|
, ncurses
|
|
|
|
, makeWrapper
|
|
|
|
} :
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "jove";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "4.17.3.7";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jonmacs";
|
|
|
|
repo = "jove";
|
|
|
|
rev = version;
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "sha256-fD87FIWZlfJE2tVX+0QaiGGqu+tJFHheXe1guJR/Hxg=";
|
2021-01-15 22:18:51 +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-17 00:15:33 +00:00
|
|
|
meta = with lib; {
|
2021-01-15 22:18:51 +00:00
|
|
|
description = "Jonathan's Own Version or Emacs";
|
|
|
|
homepage = "https://github.com/jonmacs/jove";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|