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