2018-01-06 20:49:58 +01:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "micro-${version}";
|
2018-02-23 18:14:27 +01:00
|
|
|
version = "1.4.0";
|
2018-01-06 20:49:58 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/zyedidia/micro";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zyedidia";
|
|
|
|
repo = "micro";
|
|
|
|
rev = "v${version}";
|
2018-02-23 18:14:27 +01:00
|
|
|
sha256 = "0w1rmh81h28n1jlb05k89i751h498i6p883hrsjr70hvrwq5zjpb";
|
2018-01-06 20:49:58 +01:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
subPackages = [ "cmd/micro" ];
|
|
|
|
|
|
|
|
buildFlagsArray = [ "-ldflags=" "-X main.Version=${version}" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://micro-editor.github.io;
|
|
|
|
description = "Modern and intuitive terminal-based text editor";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|