1 { lib, buildGoModule, fetchFromGitHub, pkg-config, libusb1 }:
7 src = fetchFromGitHub {
11 sha256 = "sha256-HVfB8/MImgZZLx4tcrlYOfQjpAdHMHshEaSsd+n758w=";
14 vendorSha256 = "sha256-OrAEvD2rF0Y0bvCD9TUv/E429lASsvC3uK3qNvbg734=";
16 ldflags = [ "-s" "-w" ];
18 nativeBuildInputs = [ pkg-config ];
19 buildInputs = [ libusb1 ];
22 # Only run tests under mtp/encoding_test.go
23 # Other tests require an Android deviced attached over USB.
24 buildFlagsArray+=("-run" "Test(Encode|Decode|Variant).*")
28 description = "A simple FUSE filesystem for mounting Android devices as a MTP device";
29 homepage = "https://github.com/hanwen/go-mtpfs";
30 license = licenses.bsd3;
31 maintainers = with maintainers; [ aaronjheng ];