nixpkgs/pkgs/applications/editors/jove/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.3 KiB
Nix
Raw Normal View History

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
2023-07-09 22:32:28 +00:00
, runtimeShell
2022-12-07 00:31:07 +00:00
}:
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";
2023-07-09 22:32:28 +00:00
version = "4.17.5.3";
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;
2023-07-09 22:32:28 +00:00
hash = "sha256-ZBq2zCml637p9VgedpOrUn2jSc5L0pthdgRS7YsB3zs=";
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
];
2023-07-09 22:32:28 +00:00
postPatch = ''
patchShebangs testbuild.sh testmailer.sh teachjove jmake.sh
'';
2021-01-02 10:43:19 +00:00
dontConfigure = true;
preBuild = ''
makeFlagsArray+=(SYSDEFS="-DSYSVR4 -D_XOPEN_SOURCE=500" \
2023-07-09 22:32:28 +00:00
JTMPDIR=$TMPDIR
TERMCAPLIB=-lncurses \
SHELL=${runtimeShell} \
DFLTSHELL=${runtimeShell} \
JOVEHOME=${placeholder "out"})
2021-01-02 10:43:19 +00:00
'';
postInstall = ''
wrapProgram $out/bin/teachjove \
--prefix PATH ":" "$out/bin"
'';
2023-07-09 22:32:28 +00:00
meta = {
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}";
2023-07-09 22:32:28 +00:00
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.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
})