nixpkgs/pkgs/applications/editors/openvi/default.nix
2024-10-08 05:59:28 +00:00

40 lines
798 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, ncurses
, perl
}:
stdenv.mkDerivation rec {
pname = "openvi";
version = "7.6.30";
src = fetchFromGitHub {
owner = "johnsonjh";
repo = "OpenVi";
rev = version;
hash = "sha256-P4w/PM9UmHmTzS9+WDK3x3MyZ7OoY2yO/Rx0vRMJuLI=";
};
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";
};
}