3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/editors/jove/default.nix

44 lines
897 B
Nix
Raw Normal View History

2021-01-15 13:21:58 +00:00
{ lib, stdenv, fetchFromGitHub
2021-01-02 10:43:19 +00:00
, groff
, ncurses
, makeWrapper
} :
stdenv.mkDerivation rec {
pname = "jove";
version = "4.17.3.6";
src = fetchFromGitHub {
owner = "jonmacs";
repo = "jove";
rev = version;
sha256 = "sha256-uQRNKV06ipOHrOsvsceqIFGGlRv5qOQy18q0tFkR6Kg=";
};
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-15 13:21:58 +00:00
meta = with lib; {
2021-01-02 10:43:19 +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;
};
}