nixpkgs/pkgs/tools/filesystems/jmtpfs/default.nix

34 lines
982 B
Nix
Raw Permalink Normal View History

2021-03-27 08:01:45 -07:00
{ lib, stdenv, fetchFromGitHub, fetchpatch, pkg-config, file, fuse, libmtp }:
2014-05-11 12:35:28 -07:00
let version = "0.5"; in
stdenv.mkDerivation {
2019-08-13 14:52:01 -07:00
pname = "jmtpfs";
inherit version;
2014-05-11 12:35:28 -07:00
src = fetchFromGitHub {
sha256 = "1pm68agkhrwgrplrfrnbwdcvx5lrivdmqw8pb5gdmm3xppnryji1";
rev = "v${version}";
repo = "jmtpfs";
owner = "JasonFerrara";
2014-05-11 12:35:28 -07:00
};
2021-03-27 08:01:45 -07:00
patches = [
# Fix Darwin build (https://github.com/JasonFerrara/jmtpfs/pull/12)
(fetchpatch {
url = "https://github.com/JasonFerrara/jmtpfs/commit/b89084303477d1bc4dc9a887ba9cdd75221f497d.patch";
sha256 = "0s7x3jfk8i86rd5bwhj7mb1lffcdlpj9bd7b41s1768ady91rb29";
})
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ file fuse libmtp ];
2014-05-11 12:35:28 -07:00
meta = with lib; {
2014-11-11 05:20:43 -08:00
description = "A FUSE filesystem for MTP devices like Android phones";
homepage = "https://github.com/JasonFerrara/jmtpfs";
2021-03-27 08:01:45 -07:00
license = licenses.gpl3Only;
platforms = platforms.unix;
maintainers = [ maintainers.coconnor ];
2014-05-11 12:35:28 -07:00
};
}