2021-03-23 02:37:57 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-12-29 06:36:12 +01:00
|
|
|
|
2021-03-23 02:37:57 +01:00
|
|
|
buildGoModule rec {
|
2020-12-29 06:36:12 +01:00
|
|
|
pname = "microplane";
|
2021-08-17 10:59:44 +02:00
|
|
|
version = "0.0.34";
|
2020-12-29 06:36:12 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Clever";
|
|
|
|
repo = "microplane";
|
|
|
|
rev = "v${version}";
|
2021-08-17 10:59:44 +02:00
|
|
|
sha256 = "sha256-ZrBkVXRGZp8yGFIBo7sLGvJ8pMQq7Cq0xJiko57z164=";
|
2020-12-29 06:36:12 +01:00
|
|
|
};
|
|
|
|
|
2021-08-14 17:37:26 +02:00
|
|
|
vendorSha256 = "sha256-PqSjSFTVrIsQ065blIxZ9H/ARku6BEcnjboH+0K0G14=";
|
2020-12-29 06:36:12 +01:00
|
|
|
|
2021-08-26 08:45:51 +02:00
|
|
|
ldflags = [
|
|
|
|
"-s" "-w" "-X main.version=${version}"
|
|
|
|
];
|
2020-12-29 06:36:12 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ln -s $out/bin/microplane $out/bin/mp
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-12-29 06:36:12 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|