nixpkgs/pkgs/applications/editors/openvi/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
798 B
Nix
Raw Normal View History

2023-05-04 22:47:06 +00:00
{ lib
, stdenv
, fetchFromGitHub
, ncurses
2023-08-03 07:36:23 +00:00
, perl
2023-05-04 22:47:06 +00:00
}:
stdenv.mkDerivation rec {
pname = "openvi";
2023-11-26 20:02:01 +00:00
version = "7.4.27";
2023-05-04 22:47:06 +00:00
src = fetchFromGitHub {
owner = "johnsonjh";
repo = "OpenVi";
rev = version;
2023-11-26 20:02:01 +00:00
hash = "sha256-3cqe6woJvJt0ckI3aOhF0gARKy8VMCfWxIiiglkHBTo=";
2023-05-04 22:47:06 +00:00
};
2023-08-03 07:36:23 +00:00
buildInputs = [ ncurses perl ];
2023-05-04 22:47:06 +00:00
makeFlags = [
"PREFIX=$(out)"
2023-05-05 15:36:04 +00:00
# command -p will yield command not found error
2023-05-04 22:47:06 +00:00
"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 ];
2023-05-05 15:36:04 +00:00
mainProgram = "ovi";
2023-05-04 22:47:06 +00:00
};
}