summary refs log blame commit diff
path: root/pkgs/applications/misc/mob/default.nix
blob: e83ed045b0dc5e0bc0c51d6936227969602505fb (plain) (tree)
1
2
3
4
5
6
7
8


                 

                               


             


                    
                    




                                   
                                                                   

    










                                                                  
                    
                                                 

                                                             
                                                  


                                                    
{ lib
, buildGoPackage
, fetchFromGitHub
, stdenv
, withSpeech ? !stdenv.isDarwin
, makeWrapper
, espeak-ng
}:

buildGoPackage rec {
  pname = "mob";
  version = "3.0.0";

  src = fetchFromGitHub {
    rev = "v${version}";
    owner = "remotemobprogramming";
    repo = pname;
    sha256 = "sha256-silAgScvhl388Uf6HkWqEkNmr/K6aUt/lj/rxzkk/f0=";
  };

  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;
  };
}