mg: 20161005 -> 20170828

This commit is contained in:
Joachim Fasting 2017-09-25 14:00:48 +02:00
parent cd501e33ba
commit 4429559aa1
No known key found for this signature in database
GPG Key ID: 66EAB6B14F6B6E0D

View File

@ -1,33 +1,30 @@
{ fetchurl, stdenv, ncurses, pkgconfig, libbsd }:
{ stdenv, fetchurl, pkgconfig, libbsd, ncurses }:
stdenv.mkDerivation rec {
name = "mg-${version}";
version = "20161005";
version = "20170828";
src = fetchurl {
url = "http://homepage.boetes.org/software/mg/${name}.tar.gz";
sha256 = "0qaydk2cy765n9clghmi5gdnpwn15y2v0fj6r0jcm0v7d89vbz5p";
sha256 = "139nc58l5ifj3d3478nhqls0lic52skmxfxggznzxaz9camqd20z";
};
NIX_CFLAGS_COMPILE = "-Wno-error";
preConfigure = ''
substituteInPlace GNUmakefile \
--replace /usr/bin/pkg-config ${pkgconfig}/bin/pkg-config
'';
enableParallelBuilding = true;
makeFlags = [ "PKG_CONFIG=${pkgconfig}/bin/pkg-config" ];
installPhase = ''
mkdir -p $out/bin
cp mg $out/bin
mkdir -p $out/share/man/man1
cp mg.1 $out/share/man/man1
install -m 555 -Dt $out/bin mg
install -m 444 -Dt $out/share/man/man1 mg.1
'';
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ ncurses libbsd ];
buildInputs = [ libbsd ncurses ];
meta = with stdenv.lib; {
homepage = http://homepage.boetes.org/software/mg/;
description = "Micro GNU/emacs, a portable version of the mg maintained by the OpenBSD team";
homepage = "https://homepage.boetes.org/software/mg";
license = licenses.publicDomain;
platforms = platforms.all;
};