2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ncurses
|
2023-08-04 22:07:22 +00:00
|
|
|
, perl
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "openvi";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "7.4.23";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "johnsonjh";
|
|
|
|
repo = "OpenVi";
|
|
|
|
rev = version;
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-DwecSnByRkjBFqy3gWJ0+1srF2YsNACqKrAITn6wXJw=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
buildInputs = [ ncurses perl ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
# command -p will yield command not found error
|
|
|
|
"PAWK=awk"
|
|
|
|
# silently fail the chown command
|
|
|
|
"IUSGR=$(USER)"
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/johnsonjh/OpenVi";
|
|
|
|
description = "Portable OpenBSD vi for UNIX systems";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ aleksana ];
|
|
|
|
mainProgram = "ovi";
|
|
|
|
};
|
|
|
|
}
|