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