41 lines
921 B
Nix
41 lines
921 B
Nix
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "microplane";
|
|
version = "0.0.26";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Clever";
|
|
repo = "microplane";
|
|
rev = "v${version}";
|
|
sha256 = "0dba8cz13ljcsfibcwycd9vb759fzlllh2bv31vgbs2pjgcinzvm";
|
|
};
|
|
|
|
goPackagePath = "github.com/Clever/microplane";
|
|
|
|
subPackages = ["."];
|
|
|
|
# Regenerate deps.nix with the following steps:
|
|
# git clone git@github.com:Clever/microplane.git
|
|
# cd microplane
|
|
# git checkout v<version>
|
|
# dep2nix
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
buildFlagsArray = ''
|
|
-ldflags="-s -w -X main.version=v${version}"
|
|
'';
|
|
|
|
postInstall = ''
|
|
ln -s $out/bin/microplane $out/bin/mp
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A CLI tool to make git changes across many repos";
|
|
homepage = "https://github.com/Clever/microplane";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ dbirks ];
|
|
};
|
|
}
|