2021-03-23 19:22:30 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
buildGoModule rec {
|
2021-01-05 17:05:55 +00:00
|
|
|
pname = "microplane";
|
2021-08-18 13:19:15 +00:00
|
|
|
version = "0.0.34";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Clever";
|
|
|
|
repo = "microplane";
|
|
|
|
rev = "v${version}";
|
2021-08-18 13:19:15 +00:00
|
|
|
sha256 = "sha256-ZrBkVXRGZp8yGFIBo7sLGvJ8pMQq7Cq0xJiko57z164=";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-PqSjSFTVrIsQ065blIxZ9H/ARku6BEcnjboH+0K0G14=";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s" "-w" "-X main.version=${version}"
|
|
|
|
];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ln -s $out/bin/microplane $out/bin/mp
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "CLI tool to make git changes across many repos";
|
2021-01-05 17:05:55 +00:00
|
|
|
homepage = "https://github.com/Clever/microplane";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ dbirks ];
|
|
|
|
};
|
|
|
|
}
|