Unverified Commit 79999956 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

openvi: 7.6.31 -> 7.7.32 (#461594)

parents 7f4bb38f 1ec3b3ab
Loading
Loading
Loading
Loading
+17 −6
Original line number Diff line number Diff line
@@ -2,24 +2,29 @@
  lib,
  stdenv,
  fetchFromGitHub,
  pkg-config,
  ncurses,
  perl,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "openvi";
  version = "7.6.31";
  version = "7.7.32";

  src = fetchFromGitHub {
    owner = "johnsonjh";
    repo = "OpenVi";
    rev = version;
    hash = "sha256-RqmulYHQFZmTHQAYgZmB8tAG6mSquNODmssfKB8YqDU=";
    tag = finalAttrs.version;
    hash = "sha256-kLULaKEefMpNLANnVdWAZeH+2KY5gEWGce6vJ/R7HAI=";
  };

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [
    ncurses
    perl
  ]
  ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
    ncurses
  ];

  makeFlags = [
@@ -30,6 +35,12 @@ stdenv.mkDerivation rec {
    "IUSGR=$(USER)"
  ];

  # Don't include ncurses header, but link against ncurses
  # openvi requires GNU ncurses symbols, but ncurses headers
  # is incompatible with macOS wchar.h, resulting in
  # "error: expected function body after function declarator"
  env.NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-L${lib.getLib ncurses}/lib -lncursesw";

  enableParallelBuilding = true;

  meta = {
@@ -40,4 +51,4 @@ stdenv.mkDerivation rec {
    maintainers = with lib.maintainers; [ aleksana ];
    mainProgram = "ovi";
  };
}
})