nixpkgs/pkgs/applications/misc/mob/default.nix

40 lines
858 B
Nix
Raw Normal View History

{ lib
, buildGoPackage
, fetchFromGitHub
, withSpeech ? true
, makeWrapper
, espeak-ng
}:
2020-08-31 18:46:25 +01:00
buildGoPackage rec {
pname = "mob";
2021-12-07 15:49:32 +00:00
version = "2.1.0";
2020-08-31 18:46:25 +01:00
src = fetchFromGitHub {
rev = "v${version}";
owner = "remotemobprogramming";
repo = pname;
2021-12-07 15:49:32 +00:00
sha256 = "sha256-K8ID8cetzCaMc/PVRNMyIhrshtEUiD6U/jI4e0TcOO4=";
2020-08-31 18:46:25 +01: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 18:46:25 +01:00
meta = with lib; {
description = "Tool for smooth git handover";
2020-08-31 18:46:25 +01:00
homepage = "https://github.com/remotemobprogramming/mob";
license = licenses.mit;
maintainers = with maintainers; [ ericdallo ];
2020-08-31 18:46:25 +01:00
platforms = platforms.linux ++ platforms.darwin;
};
}