nixpkgs/pkgs/tools/misc/microplane/default.nix

31 lines
734 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2020-12-29 05:36:12 +00:00
buildGoModule rec {
2020-12-29 05:36:12 +00:00
pname = "microplane";
version = "0.0.28";
2020-12-29 05:36:12 +00:00
src = fetchFromGitHub {
owner = "Clever";
repo = "microplane";
rev = "v${version}";
sha256 = "00ayci0a4lv67sg2bb4fw5wpdlps4pjqiiam595dar82lsjwj63j";
2020-12-29 05:36:12 +00:00
};
vendorSha256 = "0hn2gsm9bgmrm620fn2cx28l2gj1yfgvjix9ds50m7kwkx6q0dga";
2020-12-29 05:36:12 +00:00
buildFlagsArray = ''
-ldflags="-s -w -X main.version=v${version}"
'';
postInstall = ''
ln -s $out/bin/microplane $out/bin/mp
'';
meta = with lib; {
2020-12-29 05:36:12 +00:00
description = "A CLI tool to make git changes across many repos";
homepage = "https://github.com/Clever/microplane";
license = licenses.asl20;
maintainers = with maintainers; [ dbirks ];
};
}