nixpkgs/pkgs/by-name/op/openvi/package.nix

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

45 lines
896 B
Nix
Raw Normal View History

{
lib,
stdenv,
fetchFromGitHub,
ncurses,
perl,
apple-sdk_11,
2023-05-04 22:47:06 +00:00
}:
stdenv.mkDerivation rec {
pname = "openvi";
2024-10-08 05:59:28 +00:00
version = "7.6.30";
2023-05-04 22:47:06 +00:00
src = fetchFromGitHub {
owner = "johnsonjh";
repo = "OpenVi";
rev = version;
2024-10-08 05:59:28 +00:00
hash = "sha256-P4w/PM9UmHmTzS9+WDK3x3MyZ7OoY2yO/Rx0vRMJuLI=";
2023-05-04 22:47:06 +00:00
};
buildInputs = [
ncurses
perl
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 ];
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 = {
2023-05-04 22:47:06 +00:00
homepage = "https://github.com/johnsonjh/OpenVi";
description = "Portable OpenBSD vi for UNIX systems";
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ aleksana ];
2023-05-05 15:36:04 +00:00
mainProgram = "ovi";
2023-05-04 22:47:06 +00:00
};
}