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

31 lines
729 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2020-12-29 06:36:12 +01:00
buildGoModule rec {
2020-12-29 06:36:12 +01:00
pname = "microplane";
2021-05-17 16:57:21 +02:00
version = "0.0.31";
2020-12-29 06:36:12 +01:00
src = fetchFromGitHub {
owner = "Clever";
repo = "microplane";
rev = "v${version}";
2021-05-17 16:57:21 +02:00
sha256 = "sha256-PcojOFe3SHhnFy09kcxHhb5kd07TG7Uq+coPUNbJjx4=";
2020-12-29 06:36:12 +01:00
};
2021-05-17 16:57:21 +02:00
vendorSha256 = "sha256-5HHdxSXg3ZIUyFQALaYgvf4pQwNxG58cF4vnCnMgAuY=";
2020-12-29 06:36:12 +01:00
buildFlagsArray = ''
2021-05-17 16:57:21 +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
'';
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 ];
};
}