2018-01-06 19:49:58 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "micro";
|
2020-04-18 18:26:43 +01:00
|
|
|
version = "2.0.3";
|
2018-01-06 19:49:58 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/zyedidia/micro";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zyedidia";
|
|
|
|
repo = "micro";
|
|
|
|
rev = "v${version}";
|
2020-04-18 18:26:43 +01:00
|
|
|
sha256 = "017m9kb3gfrgzd06f1nma1i3m5rb0hzpgdikb86lsyv8ik18y12z";
|
2018-01-06 19:49:58 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
subPackages = [ "cmd/micro" ];
|
|
|
|
|
2020-04-18 18:26:43 +01:00
|
|
|
buildFlagsArray = [ "-ldflags=" "-X ${goPackagePath}/internal/util.Version=${version}" ];
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
2018-01-06 19:49:58 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://micro-editor.github.io";
|
2018-01-06 19:49:58 +00:00
|
|
|
description = "Modern and intuitive terminal-based text editor";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|