micro: install man page

This commit is contained in:
Daniël de Kok 2020-06-22 15:13:19 +02:00
parent 2aaef877e3
commit bc03b771fd

View file

@ -1,6 +1,6 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:
{ stdenv, buildGoPackage, fetchFromGitHub, installShellFiles }:
buildGoPackage rec {
buildGoPackage rec {
pname = "micro";
version = "2.0.5";
@ -14,6 +14,8 @@ buildGoPackage rec {
fetchSubmodules = true;
};
nativeBuildInputs = [ installShellFiles ];
subPackages = [ "cmd/micro" ];
buildFlagsArray = let t = "${goPackagePath}/internal/util"; in ''
@ -24,6 +26,10 @@ buildGoPackage rec {
goDeps = ./deps.nix;
postInstall = ''
installManPage $src/assets/packaging/micro.1
'';
meta = with stdenv.lib; {
homepage = "https://micro-editor.github.io";
description = "Modern and intuitive terminal-based text editor";