about summary refs log tree commit diff
path: root/pkgs/applications/editors/mg/default.nix
diff options
context:
space:
mode:
authorD. Guthrie <dguthrie@posteo.net>2020-05-07 17:37:53 +0100
committerD. Guthrie <dguthrie@posteo.net>2020-05-07 17:37:53 +0100
commitc54d37598a27941621228c7b4bb1eebb2dfaafdd (patch)
treee0bc17b83414a53dc8b68832bcd6fe2baf6a7df5 /pkgs/applications/editors/mg/default.nix
parentfcedd9f78e8072b629a5ff1da4f538f7e655f091 (diff)
downloadnixlib-c54d37598a27941621228c7b4bb1eebb2dfaafdd.tar
nixlib-c54d37598a27941621228c7b4bb1eebb2dfaafdd.tar.gz
nixlib-c54d37598a27941621228c7b4bb1eebb2dfaafdd.tar.bz2
nixlib-c54d37598a27941621228c7b4bb1eebb2dfaafdd.tar.lz
nixlib-c54d37598a27941621228c7b4bb1eebb2dfaafdd.tar.xz
nixlib-c54d37598a27941621228c7b4bb1eebb2dfaafdd.tar.zst
nixlib-c54d37598a27941621228c7b4bb1eebb2dfaafdd.zip
Set upstream to https://github.com/ibara/mg
As per reasonable suggestion, instead of extensively patching the
hboetes version of mg to work on MacOS using bits from ibara's mg,
just set upstream to ibara's mg.

This also removes the dependency on libbsd, although I'm not sure
if this is a good or bad thing.
Diffstat (limited to 'pkgs/applications/editors/mg/default.nix')
-rw-r--r--pkgs/applications/editors/mg/default.nix16
1 files changed, 7 insertions, 9 deletions
diff --git a/pkgs/applications/editors/mg/default.nix b/pkgs/applications/editors/mg/default.nix
index e019baaf727b..612cdcc7f881 100644
--- a/pkgs/applications/editors/mg/default.nix
+++ b/pkgs/applications/editors/mg/default.nix
@@ -1,14 +1,14 @@
-{ stdenv, fetchFromGitHub, pkgconfig, ncurses, buildPackages, libbsd }:
+{ stdenv, fetchFromGitHub, pkgconfig, ncurses, buildPackages }:
 
 stdenv.mkDerivation rec {
   pname = "mg";
-  version = "20200215";
+  version = "6.7";
 
   src = fetchFromGitHub {
-    owner = "hboetes";
+    owner = "ibara";
     repo = "mg";
-    rev = "20200215";
-    sha256 = "1rss7d43hbq43n63gxfvx4b2vh2km58cchwzdf2ssqhaz3qj40m6";
+    rev = "mg-6.7";
+    sha256 = "15adwibq6xrfxbrxzk765g9250iyfn4wbcxd7kcsabiwn6apm0ai";
   };
 
   enableParallelBuilding = true;
@@ -21,13 +21,11 @@ stdenv.mkDerivation rec {
   '';
   nativeBuildInputs = [ pkgconfig ];
 
-  patches = ./darwin_no_libbsd.patch;
-
-  buildInputs = [ ncurses ] ++ stdenv.lib.optional (!stdenv.isDarwin) libbsd;
+  buildInputs = [ ncurses ];
 
   meta = with stdenv.lib; {
     description = "Micro GNU/emacs, a portable version of the mg maintained by the OpenBSD team";
-    homepage = "https://homepage.boetes.org/software/mg";
+    homepage = "https://man.openbsd.org/OpenBSD-current/man1/mg.1";
     license = licenses.publicDomain;
     platforms = platforms.all;
   };