blob: 131367cf9f2a351594339d34c4cd0d9ad62104c7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "microplane";
version = "0.0.25";
src = fetchFromGitHub {
owner = "Clever";
repo = "microplane";
rev = "v${version}";
sha256 = "0vynkv3d70q8d079kgdmwbavyyrjssqnd223dl1rikyy7sd5sli8";
};
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 ];
};
}
|