2017-09-25 14:00:48 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libbsd, ncurses }:
|
|
|
|
|
2013-07-30 15:53:00 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2017-03-19 22:07:12 +01:00
|
|
|
name = "mg-${version}";
|
2017-09-25 14:00:48 +02:00
|
|
|
version = "20170828";
|
2013-07-30 15:53:00 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-03-19 22:07:12 +01:00
|
|
|
url = "http://homepage.boetes.org/software/mg/${name}.tar.gz";
|
2017-09-25 14:00:48 +02:00
|
|
|
sha256 = "139nc58l5ifj3d3478nhqls0lic52skmxfxggznzxaz9camqd20z";
|
2013-07-30 15:53:00 +02:00
|
|
|
};
|
|
|
|
|
2017-09-25 14:00:48 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
makeFlags = [ "PKG_CONFIG=${pkgconfig}/bin/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
|
|
|
|
|
|
|
buildInputs = [ libbsd ncurses ];
|
2013-07-30 15:53:00 +02:00
|
|
|
|
2017-03-19 22:07:12 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Micro GNU/emacs, a portable version of the mg maintained by the OpenBSD team";
|
2017-09-25 14:00:48 +02:00
|
|
|
homepage = "https://homepage.boetes.org/software/mg";
|
2017-03-19 22:07:12 +01:00
|
|
|
license = licenses.publicDomain;
|
|
|
|
platforms = platforms.all;
|
2013-07-30 15:53:00 +02:00
|
|
|
};
|
|
|
|
}
|