1 { lib, stdenv, fetchFromGitHub, fetchpatch, pkg-config, file, fuse, libmtp }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
8 sha256 = "1pm68agkhrwgrplrfrnbwdcvx5lrivdmqw8pb5gdmm3xppnryji1";
11 owner = "JasonFerrara";
15 # Fix Darwin build (https://github.com/JasonFerrara/jmtpfs/pull/12)
17 url = "https://github.com/JasonFerrara/jmtpfs/commit/b89084303477d1bc4dc9a887ba9cdd75221f497d.patch";
18 sha256 = "0s7x3jfk8i86rd5bwhj7mb1lffcdlpj9bd7b41s1768ady91rb29";
22 nativeBuildInputs = [ pkg-config ];
23 buildInputs = [ file fuse libmtp ];
26 description = "FUSE filesystem for MTP devices like Android phones";
27 homepage = "https://github.com/JasonFerrara/jmtpfs";
28 license = licenses.gpl3Only;
29 platforms = platforms.unix;
30 maintainers = [ maintainers.coconnor ];
31 mainProgram = "jmtpfs";