nixpkgs-suyu/pkgs/applications/editors/mg/default.nix

32 lines
859 B
Nix
Raw Normal View History

2019-03-16 16:39:59 +01:00
{ stdenv, fetchurl, pkgconfig, libbsd, ncurses, buildPackages }:
2017-09-25 14:00:48 +02:00
2013-07-30 15:53:00 +02:00
stdenv.mkDerivation rec {
pname = "mg";
version = "20171014";
2013-07-30 15:53:00 +02:00
src = fetchurl {
url = "http://homepage.boetes.org/software/mg/${pname}-${version}.tar.gz";
sha256 = "0hakfikzsml7z0hja8m8mcahrmfy2piy81bq9nccsjplyfc9clai";
2013-07-30 15:53:00 +02:00
};
2017-09-25 14:00:48 +02:00
enableParallelBuilding = true;
2019-03-16 16:39:59 +01:00
makeFlags = [ "PKG_CONFIG=${buildPackages.pkgconfig}/bin/pkg-config" ];
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
'';
nativeBuildInputs = [ pkgconfig ];
2017-09-25 14:00:48 +02:00
buildInputs = [ libbsd ncurses ];
2013-07-30 15:53:00 +02:00
meta = with stdenv.lib; {
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";
license = licenses.publicDomain;
platforms = platforms.all;
2013-07-30 15:53:00 +02:00
};
}