2021-03-27 15:01:45 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, pkg-config, file, fuse, libmtp }:
|
2014-05-11 19:35:28 +00:00
|
|
|
|
2021-07-17 17:56:23 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "jmtpfs";
|
2021-07-17 17:56:23 +00:00
|
|
|
version = "0.5";
|
2014-05-11 19:35:28 +00:00
|
|
|
|
2015-05-27 00:56:39 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
sha256 = "1pm68agkhrwgrplrfrnbwdcvx5lrivdmqw8pb5gdmm3xppnryji1";
|
|
|
|
rev = "v${version}";
|
|
|
|
repo = "jmtpfs";
|
|
|
|
owner = "JasonFerrara";
|
2014-05-11 19:35:28 +00:00
|
|
|
};
|
|
|
|
|
2021-03-27 15:01:45 +00:00
|
|
|
patches = [
|
|
|
|
# Fix Darwin build (https://github.com/JasonFerrara/jmtpfs/pull/12)
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/JasonFerrara/jmtpfs/commit/b89084303477d1bc4dc9a887ba9cdd75221f497d.patch";
|
|
|
|
sha256 = "0s7x3jfk8i86rd5bwhj7mb1lffcdlpj9bd7b41s1768ady91rb29";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-17 09:17:16 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 21:26:13 +00:00
|
|
|
buildInputs = [ file fuse libmtp ];
|
2014-05-11 19:35:28 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-11-11 13:20:43 +00:00
|
|
|
description = "A FUSE filesystem for MTP devices like Android phones";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/JasonFerrara/jmtpfs";
|
2021-03-27 15:01:45 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
platforms = platforms.unix;
|
2015-05-27 00:56:39 +00:00
|
|
|
maintainers = [ maintainers.coconnor ];
|
2014-05-11 19:35:28 +00:00
|
|
|
};
|
|
|
|
}
|