nixpkgs/pkgs/applications/editors/micro/default.nix

31 lines
737 B
Nix
Raw Normal View History

2018-01-06 19:49:58 +00:00
{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
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; {
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 ];
};
}