b5f92a349c
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
39 lines
798 B
Nix
39 lines
798 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, ncurses
|
|
, perl
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "openvi";
|
|
version = "7.4.24";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "johnsonjh";
|
|
repo = "OpenVi";
|
|
rev = version;
|
|
hash = "sha256-jfh82Ti8iVqsh7G9BnHbc3cQP8D9dGV71YJ28SBjjgA=";
|
|
};
|
|
|
|
buildInputs = [ ncurses perl ];
|
|
|
|
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";
|
|
};
|
|
}
|