blob: 90c1683edeeaed3aa3df0a56f7e8209941e2919d (
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
41
42
43
|
{ lib
, buildGoModule
, fetchFromGitHub
, stdenv
, withSpeech ? !stdenv.hostPlatform.isDarwin
, makeWrapper
, espeak-ng
}:
buildGoModule rec {
pname = "mob";
version = "5.2.0";
src = fetchFromGitHub {
owner = "remotemobprogramming";
repo = "mob";
rev = "v${version}";
hash = "sha256-LktA7GMOWAl12PRLgX8VTyYZ00sh6AHsgw9NdyjAJ64=";
};
vendorHash = null;
nativeBuildInputs = [
makeWrapper
];
ldflags = [ "-s" "-w" ];
doCheck = false;
preFixup = lib.optionalString withSpeech ''
wrapProgram $out/bin/mob \
--set MOB_VOICE_COMMAND "${lib.getBin espeak-ng}/bin/espeak"
'';
meta = with lib; {
description = "Tool for smooth git handover";
mainProgram = "mob";
homepage = "https://github.com/remotemobprogramming/mob";
license = licenses.mit;
maintainers = with maintainers; [ ericdallo ];
};
}
|