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-10-19 13:55:26 +00:00
|
|
|
version = "7.4.24";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "johnsonjh";
|
|
|
|
repo = "OpenVi";
|
|
|
|
rev = version;
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-jfh82Ti8iVqsh7G9BnHbc3cQP8D9dGV71YJ28SBjjgA=";
|
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";
|
|
|
|
};
|
|
|
|
}
|