2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkgconfig, ncurses, buildPackages }:
|
2017-09-25 14:00:48 +02:00
|
|
|
|
2013-07-30 15:53:00 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "mg";
|
2020-12-08 01:07:21 +01:00
|
|
|
version = "6.8.1";
|
2013-07-30 15:53:00 +02:00
|
|
|
|
2020-04-20 22:34:39 +02:00
|
|
|
src = fetchFromGitHub {
|
2020-05-07 18:37:53 +02:00
|
|
|
owner = "ibara";
|
2020-04-20 22:34:39 +02:00
|
|
|
repo = "mg";
|
2020-12-08 01:07:21 +01:00
|
|
|
rev = "mg-6.8.1";
|
|
|
|
sha256 = "0fyqyi5sag13jx8bc22bvkgybddvsr0wdili9ikxnpnqg2w84fx7";
|
2013-07-30 15:53:00 +02:00
|
|
|
};
|
|
|
|
|
2017-09-25 14:00:48 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-04-28 05:56:25 +02:00
|
|
|
makeFlags = [ "PKG_CONFIG=${buildPackages.pkgconfig}/bin/${buildPackages.pkgconfig.targetPrefix}pkg-config" ];
|
2016-08-12 06:02:00 +02:00
|
|
|
|
2013-07-30 15:53:00 +02:00
|
|
|
installPhase = ''
|
2017-09-25 14:00:48 +02:00
|
|
|
install -m 555 -Dt $out/bin mg
|
|
|
|
install -m 444 -Dt $out/share/man/man1 mg.1
|
2013-07-30 15:53:00 +02:00
|
|
|
'';
|
2017-03-19 22:07:12 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2017-09-25 14:00:48 +02:00
|
|
|
|
2020-05-07 18:37:53 +02:00
|
|
|
buildInputs = [ ncurses ];
|
2013-07-30 15:53:00 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Micro GNU/emacs, a portable version of the mg maintained by the OpenBSD team";
|
2020-05-07 18:37:53 +02:00
|
|
|
homepage = "https://man.openbsd.org/OpenBSD-current/man1/mg.1";
|
2017-03-19 22:07:12 +01:00
|
|
|
license = licenses.publicDomain;
|
|
|
|
platforms = platforms.all;
|
2013-07-30 15:53:00 +02:00
|
|
|
};
|
|
|
|
}
|