mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
e13831335f
* treewide: stdenv.is -> stdenv.hostPlatform.is * treewide: nixfmt due to ci error
45 lines
896 B
Nix
45 lines
896 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
ncurses,
|
|
perl,
|
|
apple-sdk_11,
|
|
}:
|
|
|
|
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
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 ];
|
|
|
|
makeFlags = [
|
|
"PREFIX=$(out)"
|
|
# command -p will yield command not found error
|
|
"PAWK=awk"
|
|
# silently fail the chown command
|
|
"IUSGR=$(USER)"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
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 ];
|
|
mainProgram = "ovi";
|
|
};
|
|
}
|