mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
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";
|
|
};
|
|
}
|