8e65f7f0cc
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
39 lines
858 B
Nix
39 lines
858 B
Nix
{ lib
|
|
, buildGoPackage
|
|
, fetchFromGitHub
|
|
|
|
, withSpeech ? true
|
|
, makeWrapper
|
|
, espeak-ng
|
|
}:
|
|
|
|
buildGoPackage rec {
|
|
pname = "mob";
|
|
version = "2.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
owner = "remotemobprogramming";
|
|
repo = pname;
|
|
sha256 = "sha256-NXctu5gg0QfiTZ7osQ0yzETabGDuEeTVZBPFyLeNq8k=";
|
|
};
|
|
|
|
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"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Tool for smooth git handover";
|
|
homepage = "https://github.com/remotemobprogramming/mob";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ericdallo ];
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
};
|
|
}
|