13 stdenv.mkDerivation rec {
17 src = fetchFromGitHub {
20 rev = "libmtp-${builtins.replaceStrings [ "." ] [ "-" ] version}";
21 sha256 = "sha256-/tyCoEW/rCLfZH2HhA3Nxuij9d/ZJgsfyP4fLlfyNRA=";
24 outputs = [ "bin" "dev" "out" ];
34 buildInputs = [ libiconv ];
36 propagatedBuildInputs = [ libusb1 ];
38 preConfigure = "./autogen.sh";
40 configureFlags = [ "--with-udev=${placeholder "out"}/lib/udev" ];
42 enableParallelBuilding = true;
45 homepage = "https://github.com/libmtp/libmtp";
46 description = "An implementation of Microsoft's Media Transfer Protocol";
48 libmtp is an implementation of Microsoft's Media Transfer Protocol (MTP)
49 in the form of a library suitable primarily for POSIX compliant operating
50 systems. We implement MTP Basic, the stuff proposed for standardization.
52 platforms = platforms.unix;
53 license = licenses.lgpl21;
54 maintainers = with maintainers; [ lovesegfault ];