14 src = fetchFromGitHub {
18 hash = "sha256-HVfB8/MImgZZLx4tcrlYOfQjpAdHMHshEaSsd+n758w=";
21 vendorHash = "sha256-OrAEvD2rF0Y0bvCD9TUv/E429lASsvC3uK3qNvbg734=";
28 nativeBuildInputs = [ pkg-config ];
29 buildInputs = [ libusb1 ];
32 # Only run tests under mtp/encoding_test.go
33 # Other tests require an Android deviced attached over USB.
34 "-run=Test(Encode|Decode|Variant)"
38 description = "Simple FUSE filesystem for mounting Android devices as a MTP device";
39 homepage = "https://github.com/hanwen/go-mtpfs";
40 license = licenses.bsd3;
42 broken = stdenv.hostPlatform.isDarwin;
43 mainProgram = "go-mtpfs";