097b3eb306
* build was broken under darwin due to incompatible dep that has been pulled in via "withSpeech ? true"
39 lines
878 B
Nix
39 lines
878 B
Nix
{ lib
|
|
, buildGoPackage
|
|
, fetchFromGitHub
|
|
, stdenv
|
|
, withSpeech ? !stdenv.isDarwin
|
|
, makeWrapper
|
|
, espeak-ng
|
|
}:
|
|
|
|
buildGoPackage rec {
|
|
pname = "mob";
|
|
version = "2.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
owner = "remotemobprogramming";
|
|
repo = pname;
|
|
sha256 = "sha256-GJ4V4GQRUoXelk0ksHPoFL4iB1W7pe2UydK2AhYjysg=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|