lol
1{ lib
2, buildGoModule
3, fetchFromGitHub
4, android-tools
5}:
6
7buildGoModule rec {
8 pname = "fdroidcl";
9 version = "0.7.0";
10
11 src = fetchFromGitHub {
12 owner = "mvdan";
13 repo = "fdroidcl";
14 rev = "v${version}";
15 hash = "sha256-tqhs3b/DHfnGOm9qcM56NSzt1GJflJfbemkp7+nXbug=";
16 };
17
18 patches = [ ./go_mod_version_update.patch ];
19
20 vendorHash = "sha256-BWbwhHjfmMjiRurrZfW/YgIzJUH/hn+7qonD0BcTLxs=";
21
22 postPatch = ''
23 substituteInPlace adb/{server,device}.go \
24 --replace 'exec.Command("adb"' 'exec.Command("${android-tools}/bin/adb"'
25 '';
26
27 # TestScript/search attempts to connect to fdroid
28 doCheck = false;
29
30 meta = with lib; {
31 description = "F-Droid command line interface written in Go";
32 homepage = "https://github.com/mvdan/fdroidcl";
33 license = licenses.bsd3;
34 maintainers = with maintainers; [ aleksana ];
35 };
36}