diff options
author | Nikolay Korotkiy <sikmir@disroot.org> | 2022-08-01 11:03:41 +0300 |
---|---|---|
committer | Nikolay Korotkiy <sikmir@disroot.org> | 2022-08-01 11:03:41 +0300 |
commit | 39a00dfda5966a3e02e9ad6b92dffaa59a398a8b (patch) | |
tree | a73c9ac0ca86a9a7326fdde6f35dd8208c70151b /pkgs | |
parent | 5a4ddc22a994535813787a7c0e284efb34105397 (diff) |
micro: 2.0.10 → 2.0.11
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/editors/micro/default.nix | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/pkgs/applications/editors/micro/default.nix b/pkgs/applications/editors/micro/default.nix index d9805cbb36a94..bace622004a81 100644 --- a/pkgs/applications/editors/micro/default.nix +++ b/pkgs/applications/editors/micro/default.nix @@ -2,22 +2,27 @@ buildGoModule rec { pname = "micro"; - version = "2.0.10"; + version = "2.0.11"; src = fetchFromGitHub { owner = "zyedidia"; repo = pname; rev = "v${version}"; - sha256 = "sha256-hVFmViwGXuYVAKaCkzK/LHjCi8AtLu0tsPpT61glxys="; + sha256 = "sha256-3Rppi8UcAc4zdXOd81Y+sb5Psezx2TQsNw73WdPVMgE="; }; nativeBuildInputs = [ installShellFiles ]; subPackages = [ "cmd/micro" ]; - vendorSha256 = "sha256-YcAKl4keizkbgQLAZGiCG3CGpNTNad8EvOJEXLX2s0s="; + vendorSha256 = "sha256-/bWIn5joZOTOtuAbljOc0NgBfjrFkbFZih+cPNHnS9w="; - ldflags = [ "-s" "-w" "-X github.com/zyedidia/micro/v2/internal/util.Version=${version}" "-X github.com/zyedidia/micro/v2/internal/util.CommitHash=${src.rev}" ]; + ldflags = let t = "github.com/zyedidia/micro/v2/internal"; in [ + "-s" + "-w" + "-X ${t}/util.Version=${version}" + "-X ${t}/util.CommitHash=${src.rev}" + ]; postInstall = '' installManPage assets/packaging/micro.1 |