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

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

50 lines
1.1 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
}:
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-24 13:48:26 +00:00
version = "4.17.4.9";
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-24 13:48:26 +00:00
sha256 = "sha256-Lo5S3t4vewkpoihVdxa3yRrEzNWeNLHCZHXiLCxOH5o=";
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
})