2020-12-05 18:07:32 +00:00
|
|
|
{ stdenv, lib, fetchurl, perlPackages, intltool, autoreconfHook,
|
|
|
|
pkg-config, glib, libxml2, sqlite, zlib, sg3_utils, gdk-pixbuf, taglib,
|
2020-03-01 14:51:43 +00:00
|
|
|
libimobiledevice,
|
2019-02-03 15:30:32 +00:00
|
|
|
monoSupport ? false, mono, gtk-sharp-2_0
|
2016-02-09 14:40:24 +00:00
|
|
|
}:
|
2009-04-13 15:41:00 +00:00
|
|
|
|
2019-12-12 10:59:46 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-12-04 04:32:32 +00:00
|
|
|
name = "libgpod-0.8.3";
|
2019-12-12 10:59:46 +00:00
|
|
|
|
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
|
|
|
};
|
|
|
|
|
2019-12-12 10:59:46 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2020-12-05 18:07:32 +00:00
|
|
|
postPatch = ''
|
|
|
|
# support libplist 2.2
|
|
|
|
substituteInPlace configure.ac --replace 'libplist >= 1.0' 'libplist-2.0 >= 2.2'
|
|
|
|
'';
|
2016-02-09 14:40:24 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--without-hal"
|
|
|
|
"--enable-udev"
|
2020-12-05 18:07:32 +00:00
|
|
|
"--with-udev-dir=${placeholder "out"}/lib/udev"
|
2016-02-09 14:40:24 +00:00
|
|
|
] ++ 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
|
2020-03-01 14:51:43 +00:00
|
|
|
gdk-pixbuf taglib libimobiledevice ];
|
2010-09-27 16:22:40 +00:00
|
|
|
|
2020-12-05 18:07:32 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook intltool pkg-config ]
|
2018-10-12 22:56:15 +00:00
|
|
|
++ (with perlPackages; [ perl XMLParser ])
|
|
|
|
++ lib.optionals monoSupport [ mono gtk-sharp-2_0 ];
|
2009-04-13 15:41:10 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://gtkpod.sourceforge.net/";
|
2009-04-13 15:41:10 +00:00
|
|
|
description = "Library used by gtkpod to access the contents of an ipod";
|
|
|
|
license = "LGPL";
|
2021-01-23 17:15:07 +00:00
|
|
|
platforms = lib.platforms.gnu ++ lib.platforms.linux;
|
2017-03-27 17:11:17 +00:00
|
|
|
maintainers = [ ];
|
2009-04-13 15:41:10 +00:00
|
|
|
};
|
2009-04-13 15:41:00 +00:00
|
|
|
}
|