mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
c54d37598a
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.
33 lines
841 B
Nix
33 lines
841 B
Nix
{ stdenv, fetchFromGitHub, pkgconfig, ncurses, buildPackages }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mg";
|
|
version = "6.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ibara";
|
|
repo = "mg";
|
|
rev = "mg-6.7";
|
|
sha256 = "15adwibq6xrfxbrxzk765g9250iyfn4wbcxd7kcsabiwn6apm0ai";
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
makeFlags = [ "PKG_CONFIG=${buildPackages.pkgconfig}/bin/pkg-config" ];
|
|
|
|
installPhase = ''
|
|
install -m 555 -Dt $out/bin mg
|
|
install -m 444 -Dt $out/share/man/man1 mg.1
|
|
'';
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Micro GNU/emacs, a portable version of the mg maintained by the OpenBSD team";
|
|
homepage = "https://man.openbsd.org/OpenBSD-current/man1/mg.1";
|
|
license = licenses.publicDomain;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|