Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / mobile / fdroidcl / default.nix
blob6b6f676a8d4f072e8b560754089c31df68b0815c
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 , android-tools
5 }:
7 buildGoModule rec {
8   pname = "fdroidcl";
9   version = "0.7.0";
11   src = fetchFromGitHub {
12     owner = "mvdan";
13     repo = "fdroidcl";
14     rev = "v${version}";
15     hash = "sha256-tqhs3b/DHfnGOm9qcM56NSzt1GJflJfbemkp7+nXbug=";
16   };
18   patches = [ ./go_mod_version_update.patch ];
20   vendorHash = "sha256-BWbwhHjfmMjiRurrZfW/YgIzJUH/hn+7qonD0BcTLxs=";
22   postPatch = ''
23     substituteInPlace adb/{server,device}.go \
24       --replace 'exec.Command("adb"' 'exec.Command("${android-tools}/bin/adb"'
25   '';
27   # TestScript/search attempts to connect to fdroid
28   doCheck = false;
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   };