2020-05-15 21:57:56 +00:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, ncurses, buildPackages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mg";
|
2020-05-15 21:57:56 +00:00
|
|
|
version = "6.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ibara";
|
|
|
|
repo = "mg";
|
|
|
|
rev = "mg-6.7";
|
|
|
|
sha256 = "15adwibq6xrfxbrxzk765g9250iyfn4wbcxd7kcsabiwn6apm0ai";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
makeFlags = [ "PKG_CONFIG=${buildPackages.pkgconfig}/bin/pkg-config" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m 555 -Dt $out/bin mg
|
|
|
|
install -m 444 -Dt $out/share/man/man1 mg.1
|
|
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
buildInputs = [ ncurses ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Micro GNU/emacs, a portable version of the mg maintained by the OpenBSD team";
|
2020-05-15 21:57:56 +00:00
|
|
|
homepage = "https://man.openbsd.org/OpenBSD-current/man1/mg.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.publicDomain;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|