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