2022-01-05 23:24:20 +01:00
|
|
|
{ lib
|
2022-05-20 10:54:26 +02:00
|
|
|
, buildGoModule
|
2022-01-05 23:24:20 +01:00
|
|
|
, fetchFromGitHub
|
2022-03-16 07:24:42 +01:00
|
|
|
, stdenv
|
|
|
|
, withSpeech ? !stdenv.isDarwin
|
2022-01-05 23:24:20 +01:00
|
|
|
, makeWrapper
|
|
|
|
, espeak-ng
|
|
|
|
}:
|
2020-08-31 19:46:25 +02:00
|
|
|
|
2022-05-20 10:54:26 +02:00
|
|
|
buildGoModule rec {
|
2020-08-31 19:46:25 +02:00
|
|
|
pname = "mob";
|
2022-09-16 00:50:03 +02:00
|
|
|
version = "3.2.0";
|
2020-08-31 19:46:25 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "remotemobprogramming";
|
|
|
|
repo = pname;
|
2022-05-20 10:54:26 +02:00
|
|
|
rev = "v${version}";
|
2022-09-16 00:50:03 +02:00
|
|
|
sha256 = "sha256-qr6F98OVI+K0V59YH35GERiC9jgxp/YJm4N4EGvDotk=";
|
2020-08-31 19:46:25 +02:00
|
|
|
};
|
|
|
|
|
2022-07-29 02:57:21 +02:00
|
|
|
vendorSha256 = null;
|
2022-05-20 10:54:26 +02:00
|
|
|
|
2022-01-05 23:24:20 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
2022-05-20 10:54:26 +02:00
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
|
|
|
doCheck = false;
|
2022-01-05 23:24:20 +01:00
|
|
|
|
|
|
|
preFixup = lib.optionalString withSpeech ''
|
|
|
|
wrapProgram $out/bin/mob \
|
|
|
|
--set MOB_VOICE_COMMAND "${lib.getBin espeak-ng}/bin/espeak"
|
|
|
|
'';
|
|
|
|
|
2020-08-31 19:46:25 +02:00
|
|
|
meta = with lib; {
|
2022-01-05 23:24:20 +01:00
|
|
|
description = "Tool for smooth git handover";
|
2020-08-31 19:46:25 +02:00
|
|
|
homepage = "https://github.com/remotemobprogramming/mob";
|
|
|
|
license = licenses.mit;
|
2022-01-05 23:24:20 +01:00
|
|
|
maintainers = with maintainers; [ ericdallo ];
|
2020-08-31 19:46:25 +02:00
|
|
|
};
|
|
|
|
}
|