Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 36 lines 868 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 android-tools, 6}: 7 8buildGoModule (finalAttrs: { 9 pname = "fdroidcl"; 10 version = "0.8.1"; 11 12 src = fetchFromGitHub { 13 owner = "Hoverth"; 14 repo = "fdroidcl"; 15 tag = "v${finalAttrs.version}"; 16 hash = "sha256-SmPtMNHxktyhc0/izWmAzcfCXqF2BpPNJjsrqRlU1K0="; 17 }; 18 19 vendorHash = "sha256-PNj5gkFj+ruxv1I4SezJxebDO2e1qGTYp3ZgekRLNt0="; 20 21 postPatch = '' 22 substituteInPlace adb/{server,device}.go \ 23 --replace 'exec.Command("adb"' 'exec.Command("${android-tools}/bin/adb"' 24 ''; 25 26 # TestScript/search attempts to connect to fdroid 27 doCheck = false; 28 29 meta = { 30 description = "F-Droid command line interface written in Go"; 31 mainProgram = "fdroidcl"; 32 homepage = "https://github.com/Hoverth/fdroidcl"; 33 license = lib.licenses.bsd3; 34 maintainers = with lib.maintainers; [ aleksana ]; 35 }; 36})