From 7d370b0fa36e88f4bab4925d8e7988feecb3ab7b Mon Sep 17 00:00:00 2001 From: AndersonTorres Date: Sat, 2 Jan 2021 07:43:19 -0300 Subject: [PATCH] jove: init at 4.17.3.6 --- pkgs/applications/editors/jove/default.nix | 43 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100644 pkgs/applications/editors/jove/default.nix diff --git a/pkgs/applications/editors/jove/default.nix b/pkgs/applications/editors/jove/default.nix new file mode 100644 index 000000000000..4a22c4d4d955 --- /dev/null +++ b/pkgs/applications/editors/jove/default.nix @@ -0,0 +1,43 @@ +{ stdenv, fetchFromGitHub +, 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" + ''; + + meta = with stdenv.lib; { + description = "Jonathan's Own Version or Emacs"; + homepage = "https://github.com/jonmacs/jove"; + license = licenses.bsd2; + maintainers = with maintainers; [ AndersonTorres ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 682496142679..6c9a1f4cce95 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5080,6 +5080,8 @@ in jumpapp = callPackage ../tools/X11/jumpapp {}; + jove = callPackage ../applications/editors/jove {}; + jucipp = callPackage ../applications/editors/jucipp { }; jugglinglab = callPackage ../tools/misc/jugglinglab { };