2022-01-07 04:07:37 +00:00
|
|
|
{ lib
|
2022-06-16 17:23:12 +00:00
|
|
|
, buildGoModule
|
2022-01-07 04:07:37 +00:00
|
|
|
, fetchFromGitHub
|
2022-03-30 09:31:56 +00:00
|
|
|
, stdenv
|
|
|
|
, withSpeech ? !stdenv.isDarwin
|
2022-01-07 04:07:37 +00:00
|
|
|
, makeWrapper
|
|
|
|
, espeak-ng
|
|
|
|
}:
|
2020-12-25 13:55:36 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
buildGoModule rec {
|
2020-12-25 13:55:36 +00:00
|
|
|
pname = "mob";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "5.1.1";
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "remotemobprogramming";
|
2024-07-27 06:49:29 +00:00
|
|
|
repo = "mob";
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-+v48znHCfu2qBFB0JhYT1vnce0wSHMULTlwaLv0237Q=";
|
2020-12-25 13:55:36 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
vendorHash = null;
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
|
|
|
doCheck = false;
|
2022-01-07 04:07:37 +00:00
|
|
|
|
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "mob";
|
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
|
|
|
};
|
|
|
|
}
|