-
-
Notifications
You must be signed in to change notification settings - Fork 150
/
mob.nix
34 lines (28 loc) · 843 Bytes
/
mob.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{withSpeech ? false, makeWrapper, espeak-ng, buildGoPackage, fetchFromGitHub, lib, ...}:
buildGoPackage rec {
pname = "mob.sh";
version = "1.3.0";
owner = "remotemobprogramming";
repo = "mob";
src = fetchFromGitHub {
owner = owner;
repo = repo;
rev = "v${version}";
sha256 = "04x6cl2r4ja41cmy82p5apyavmdvak6jsclzf2l7islf0pmsnddv";
};
buildInputs =
if withSpeech then
[ espeak-ng makeWrapper ]
else
[];
goPackagePath = "github.com/${owner}/${repo}/";
subPackages = [ "." ];
meta = {
description = "Remote mob programming tool";
homepage = "https://mob.sh";
license = lib.licenses.mit;
};
preFixup = if withSpeech then ''
wrapProgram "$out/bin/mob" --set MOB_VOICE_COMMAND "${espeak-ng.out}/bin/espeak"
'' else "";
}