571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
34 lines
988 B
Nix
34 lines
988 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";
|
|
};
|
|
}
|