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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
860 B
Nix
Raw Normal View History

{ lib
2022-05-20 08:54:26 +00:00
, buildGoModule
, fetchFromGitHub
, stdenv
, withSpeech ? !stdenv.isDarwin
, makeWrapper
, espeak-ng
}:
2020-08-31 17:46:25 +00:00
2022-05-20 08:54:26 +00:00
buildGoModule rec {
2020-08-31 17:46:25 +00:00
pname = "mob";
2024-02-02 08:59:08 +00:00
version = "4.5.0";
2020-08-31 17:46:25 +00:00
src = fetchFromGitHub {
owner = "remotemobprogramming";
repo = pname;
2022-05-20 08:54:26 +00:00
rev = "v${version}";
2024-02-02 08:59:08 +00:00
sha256 = "sha256-uFtE7AprM/ye2sBQeszYy07RV7RmmqD9TGcTTuZwOfY=";
2020-08-31 17:46:25 +00:00
};
2023-04-20 04:13:41 +00:00
vendorHash = null;
2022-05-20 08:54:26 +00:00
nativeBuildInputs = [
makeWrapper
];
2022-05-20 08:54:26 +00:00
ldflags = [ "-s" "-w" ];
doCheck = false;
preFixup = lib.optionalString withSpeech ''
wrapProgram $out/bin/mob \
--set MOB_VOICE_COMMAND "${lib.getBin espeak-ng}/bin/espeak"
'';
2020-08-31 17:46:25 +00:00
meta = with lib; {
description = "Tool for smooth git handover";
mainProgram = "mob";
2020-08-31 17:46:25 +00:00
homepage = "https://github.com/remotemobprogramming/mob";
license = licenses.mit;
maintainers = with maintainers; [ ericdallo ];
2020-08-31 17:46:25 +00:00
};
}