3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/editors/mg/default.nix

33 lines
880 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, pkgconfig, ncurses, buildPackages }:
2017-09-25 13:00:48 +01:00
2013-07-30 14:53:00 +01:00
stdenv.mkDerivation rec {
pname = "mg";
version = "6.7";
2013-07-30 14:53:00 +01:00
src = fetchFromGitHub {
owner = "ibara";
repo = "mg";
rev = "mg-6.7";
sha256 = "15adwibq6xrfxbrxzk765g9250iyfn4wbcxd7kcsabiwn6apm0ai";
2013-07-30 14:53:00 +01:00
};
2017-09-25 13:00:48 +01:00
enableParallelBuilding = true;
makeFlags = [ "PKG_CONFIG=${buildPackages.pkgconfig}/bin/${buildPackages.pkgconfig.targetPrefix}pkg-config" ];
2013-07-30 14:53:00 +01:00
installPhase = ''
2017-09-25 13:00:48 +01:00
install -m 555 -Dt $out/bin mg
install -m 444 -Dt $out/share/man/man1 mg.1
2013-07-30 14:53:00 +01:00
'';
nativeBuildInputs = [ pkgconfig ];
2017-09-25 13:00:48 +01:00
buildInputs = [ ncurses ];
2013-07-30 14:53:00 +01:00
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;
2013-07-30 14:53:00 +01:00
};
}