From b92b8dce05d90554accad3b1a19add327b9d314b Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Tue, 30 Jul 2013 15:53:00 +0200 Subject: MicroGNUEmacs, a.k.a. MG --- pkgs/applications/editors/mg/default.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 pkgs/applications/editors/mg/default.nix (limited to 'pkgs/applications/editors/mg/default.nix') diff --git a/pkgs/applications/editors/mg/default.nix b/pkgs/applications/editors/mg/default.nix new file mode 100644 index 000000000000..ce69b5c0b5ae --- /dev/null +++ b/pkgs/applications/editors/mg/default.nix @@ -0,0 +1,30 @@ +{ fetchurl, stdenv, ncurses }: +stdenv.mkDerivation rec { + name = "mg-20110905"; + + src = fetchurl { + url = http://homepage.boetes.org/software/mg/mg-20110905.tar.gz; + sha256 = "0ac2c7wy5kkcflm7cmiqm5xhb5c4yfw3i33iln8civ1yd9z7vlqw"; + }; + + dontAddPrefix = true; + + patches = [ ./configure.patch ]; + patchFlags = "-p0"; + + installPhase = '' + mkdir -p $out/bin + cp mg $out/bin + mkdir -p $out/share/man/man1 + cp mg.1 $out/share/man/man1 + ''; + + buildInputs = [ ncurses ]; + + meta = { + homepage = http://homepage.boetes.org/software/mg/; + description = "mg is Micro GNU/emacs, this is a portable version of the mg maintained by the OpenBSD team."; + license = "public domain"; + platforms = stdenv.lib.platforms.all; + }; +} -- cgit 1.4.1