Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1019 B
Nix
47 lines
1019 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
pkg-config,
|
|
file,
|
|
fuse,
|
|
libmtp,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "jmtpfs";
|
|
version = "0.5";
|
|
|
|
src = fetchFromGitHub {
|
|
sha256 = "1pm68agkhrwgrplrfrnbwdcvx5lrivdmqw8pb5gdmm3xppnryji1";
|
|
rev = "v${version}";
|
|
repo = "jmtpfs";
|
|
owner = "JasonFerrara";
|
|
};
|
|
|
|
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
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "FUSE filesystem for MTP devices like Android phones";
|
|
homepage = "https://github.com/JasonFerrara/jmtpfs";
|
|
license = licenses.gpl3Only;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.coconnor ];
|
|
mainProgram = "jmtpfs";
|
|
};
|
|
}
|