2022-01-07 04:07:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
|
|
|
|
, withSpeech ? true
|
|
|
|
, makeWrapper
|
|
|
|
, espeak-ng
|
|
|
|
}:
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "mob";
|
2022-01-13 20:06:32 +00:00
|
|
|
version = "2.2.0";
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "remotemobprogramming";
|
|
|
|
repo = pname;
|
2022-01-13 20:06:32 +00:00
|
|
|
sha256 = "sha256-nf0FSaUi8qX1f4Luo0cP4ZLoOKbyvgmpilMOWXbzzIM=";
|
2020-12-25 13:55:36 +00:00
|
|
|
};
|
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
goPackagePath = "github.com/remotemobprogramming/mob";
|
|
|
|
|
|
|
|
preFixup = lib.optionalString withSpeech ''
|
|
|
|
wrapProgram $out/bin/mob \
|
|
|
|
--set MOB_VOICE_COMMAND "${lib.getBin espeak-ng}/bin/espeak"
|
|
|
|
'';
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
meta = with lib; {
|
2022-01-07 04:07:37 +00:00
|
|
|
description = "Tool for smooth git handover";
|
2020-12-25 13:55:36 +00:00
|
|
|
homepage = "https://github.com/remotemobprogramming/mob";
|
|
|
|
license = licenses.mit;
|
2022-01-07 04:07:37 +00:00
|
|
|
maintainers = with maintainers; [ ericdallo ];
|
2020-12-25 13:55:36 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|