summary refs log tree commit diff
path: root/pkgs/tools/filesystems/go-mtpfs/default.nix
blob: cf521425a76db81a68eae5016ab23f6b7aacee9d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, goPackages, pkgconfig, libmtp, fetchFromGitHub }:

with goPackages;

buildGoPackage rec {
  rev = "9c2b46050e8ea8574eaec2124867ac7b11e6471d";
  name = "go-mtpfs-${lib.strings.substring 0 7 rev}";
  goPackagePath = "github.com/hanwen/go-mtpfs";
  src = fetchFromGitHub {
    inherit rev;
    owner = "hanwen";
    repo = "go-mtpfs";
    sha256 = "0kxi18cb078q4wikfajp3yvp802wzfsfdp431j0dg2jdw8y7gfii";
  };

  buildInputs = [ go-fuse libmtp usb ];

  subPackages = [ "./" ];

  dontInstallSrc = true;

  meta = with lib; {
    description = "A simple FUSE filesystem for mounting Android devices as a MTP device";
    homepage    = https://github.com/hanwen/go-mtpfs;
    maintainers = with maintainers; [ bennofs ];
    platforms   = platforms.linux;
    license     = licenses.bsd3;
  };
}