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