2016-02-09 17:40:24 +03:00
|
|
|
{stdenv, lib, fetchurl, gettext, perl, perlXMLParser, intltool, pkgconfig, glib,
|
2012-01-06 03:16:06 +04:00
|
|
|
libxml2, sqlite, libusb1, zlib, sg3_utils, gdk_pixbuf, taglib,
|
2016-09-26 00:59:43 +03:00
|
|
|
libimobiledevice, pythonPackages, mutagen,
|
2016-09-12 00:24:51 +03:00
|
|
|
monoSupport ? true, mono, gtk-sharp-2_0
|
2016-02-09 17:40:24 +03:00
|
|
|
}:
|
2009-04-13 19:41:00 +04:00
|
|
|
|
2016-09-26 00:59:43 +03:00
|
|
|
let
|
|
|
|
inherit (pythonPackages) python pygobject2;
|
|
|
|
in stdenv.mkDerivation rec {
|
2013-12-04 08:32:32 +04:00
|
|
|
name = "libgpod-0.8.3";
|
2009-04-13 19:41:00 +04:00
|
|
|
src = fetchurl {
|
2012-01-06 03:16:06 +04:00
|
|
|
url = "mirror://sourceforge/gtkpod/${name}.tar.bz2";
|
2013-12-04 08:32:32 +04:00
|
|
|
sha256 = "0pcmgv1ra0ymv73mlj4qxzgyir026z9jpl5s5bkg35afs1cpk2k3";
|
2009-04-13 19:41:00 +04:00
|
|
|
};
|
|
|
|
|
2012-01-06 03:16:06 +04:00
|
|
|
preConfigure = "configureFlagsArray=( --with-udev-dir=$out/lib/udev )";
|
2016-02-09 17:40:24 +03:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--without-hal"
|
|
|
|
"--enable-udev"
|
|
|
|
] ++ lib.optionals monoSupport [ "--with-mono" ];
|
|
|
|
|
|
|
|
dontStrip = true;
|
2010-09-26 23:40:22 +04:00
|
|
|
|
2012-01-06 03:16:06 +04:00
|
|
|
propagatedBuildInputs = [ glib libxml2 sqlite zlib sg3_utils
|
2016-09-12 00:24:51 +03:00
|
|
|
gdk_pixbuf taglib libimobiledevice python pygobject2 mutagen ];
|
2010-09-27 20:22:40 +04:00
|
|
|
|
2012-12-28 22:20:09 +04:00
|
|
|
nativeBuildInputs = [ gettext perlXMLParser intltool pkgconfig perl
|
2016-09-12 00:24:51 +03:00
|
|
|
libimobiledevice.swig ] ++ lib.optionals monoSupport [ mono gtk-sharp-2_0 ];
|
2009-04-13 19:41:10 +04:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://gtkpod.sourceforge.net/;
|
|
|
|
description = "Library used by gtkpod to access the contents of an ipod";
|
|
|
|
license = "LGPL";
|
2012-01-06 03:16:06 +04:00
|
|
|
platforms = stdenv.lib.platforms.gnu;
|
2017-03-27 20:11:17 +03:00
|
|
|
maintainers = [ ];
|
2009-04-13 19:41:10 +04:00
|
|
|
};
|
2009-04-13 19:41:00 +04:00
|
|
|
}
|