2022-01-05 22:24:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoPackage
|
|
|
|
, fetchFromGitHub
|
2022-03-16 06:24:42 +00:00
|
|
|
, stdenv
|
|
|
|
, withSpeech ? !stdenv.isDarwin
|
2022-01-05 22:24:20 +00:00
|
|
|
, makeWrapper
|
|
|
|
, espeak-ng
|
|
|
|
}:
|
2020-08-31 17:46:25 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "mob";
|
2022-02-28 12:29:28 +00:00
|
|
|
version = "2.6.0";
|
2020-08-31 17:46:25 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "remotemobprogramming";
|
|
|
|
repo = pname;
|
2022-02-28 12:29:28 +00:00
|
|
|
sha256 = "sha256-GJ4V4GQRUoXelk0ksHPoFL4iB1W7pe2UydK2AhYjysg=";
|
2020-08-31 17:46:25 +00:00
|
|
|
};
|
|
|
|
|
2022-01-05 22:24:20 +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-08-31 17:46:25 +00:00
|
|
|
meta = with lib; {
|
2022-01-05 22:24:20 +00:00
|
|
|
description = "Tool for smooth git handover";
|
2020-08-31 17:46:25 +00:00
|
|
|
homepage = "https://github.com/remotemobprogramming/mob";
|
|
|
|
license = licenses.mit;
|
2022-01-05 22:24:20 +00:00
|
|
|
maintainers = with maintainers; [ ericdallo ];
|
2020-08-31 17:46:25 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|