base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / jm / jmtpfs / package.nix
blob5c6f4ac42b807e46c454ebc4140bef84441d8b36
1 { lib, stdenv, fetchFromGitHub, fetchpatch, pkg-config, file, fuse, libmtp }:
3 stdenv.mkDerivation rec {
4   pname = "jmtpfs";
5   version = "0.5";
7   src = fetchFromGitHub {
8     sha256 = "1pm68agkhrwgrplrfrnbwdcvx5lrivdmqw8pb5gdmm3xppnryji1";
9     rev = "v${version}";
10     repo = "jmtpfs";
11     owner = "JasonFerrara";
12   };
14   patches = [
15     # Fix Darwin build (https://github.com/JasonFerrara/jmtpfs/pull/12)
16     (fetchpatch {
17       url = "https://github.com/JasonFerrara/jmtpfs/commit/b89084303477d1bc4dc9a887ba9cdd75221f497d.patch";
18       sha256 = "0s7x3jfk8i86rd5bwhj7mb1lffcdlpj9bd7b41s1768ady91rb29";
19     })
20   ];
22   nativeBuildInputs = [ pkg-config ];
23   buildInputs = [ file fuse libmtp ];
25   meta = with lib; {
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";
32   };