lol
1{ stdenv, fetchurl, pkgconfig, libusb1 }:
2
3stdenv.mkDerivation rec {
4 name = "libmtp-1.1.9";
5
6 propagatedBuildInputs = [ libusb1 ];
7 buildInputs = [ pkgconfig ];
8
9 # tried to install files to /lib/udev, hopefully OK
10 configureFlags = [ "--with-udev=$$out/lib/udev" ];
11
12 src = fetchurl {
13 url = "mirror://sourceforge/libmtp/${name}.tar.gz";
14 sha256 = "12dinqic0ljnhrwx3rc61jc7q24ybr0mckc2ya5kh1s1np0d7w93";
15 };
16
17 meta = {
18 homepage = http://libmtp.sourceforge.net;
19 description = "An implementation of Microsoft's Media Transfer Protocol";
20 longDescription = ''
21 libmtp is an implementation of Microsoft's Media Transfer Protocol (MTP)
22 in the form of a library suitable primarily for POSIX compliant operating
23 systems. We implement MTP Basic, the stuff proposed for standardization.
24 '';
25 platforms = stdenv.lib.platforms.all;
26 maintainers = [ stdenv.lib.maintainers.urkud ];
27 };
28}