2021-03-23 01:37:57 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-12-29 05:36:12 +00:00
|
|
|
|
2021-03-23 01:37:57 +00:00
|
|
|
buildGoModule rec {
|
2020-12-29 05:36:12 +00:00
|
|
|
pname = "microplane";
|
2021-03-23 01:37:57 +00:00
|
|
|
version = "0.0.28";
|
2020-12-29 05:36:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Clever";
|
|
|
|
repo = "microplane";
|
|
|
|
rev = "v${version}";
|
2021-03-23 01:37:57 +00:00
|
|
|
sha256 = "00ayci0a4lv67sg2bb4fw5wpdlps4pjqiiam595dar82lsjwj63j";
|
2020-12-29 05:36:12 +00:00
|
|
|
};
|
|
|
|
|
2021-03-23 01:37:57 +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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|