2022-12-07 00:31:07 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2021-01-02 10:43:19 +00:00
|
|
|
, groff
|
|
|
|
, makeWrapper
|
2022-12-07 00:31:07 +00:00
|
|
|
, ncurses
|
|
|
|
}:
|
2021-01-02 10:43:19 +00:00
|
|
|
|
2022-12-07 00:31:07 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-01-02 10:43:19 +00:00
|
|
|
pname = "jove";
|
2022-12-13 12:48:28 +00:00
|
|
|
version = "4.17.4.8";
|
2021-01-02 10:43:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jonmacs";
|
|
|
|
repo = "jove";
|
2022-12-07 00:31:07 +00:00
|
|
|
rev = finalAttrs.version;
|
2022-12-13 12:48:28 +00:00
|
|
|
sha256 = "sha256-/n/TgVqyG/WeK+/DZqFZCdkQR4SD5+YmljLlzAehMvw=";
|
2021-01-02 10:43:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2022-12-07 00:31:07 +00:00
|
|
|
|
2021-01-02 10:43:19 +00:00
|
|
|
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; {
|
2021-01-02 10:43:19 +00:00
|
|
|
homepage = "https://github.com/jonmacs/jove";
|
2022-12-07 00:31:07 +00:00
|
|
|
description = "Jonathan's Own Version of Emacs";
|
|
|
|
changelog = "https://github.com/jonmacs/jove/releases/tag/${finalAttrs.version}";
|
2021-01-02 10:43:19 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
platforms = platforms.unix;
|
2022-12-07 00:31:07 +00:00
|
|
|
# never built on Hydra: https://hydra.nixos.org/job/nixpkgs/trunk/jove.x86_64-darwin
|
|
|
|
broken = stdenv.isDarwin;
|
2021-01-02 10:43:19 +00:00
|
|
|
};
|
2022-12-07 00:31:07 +00:00
|
|
|
})
|