2019-12-12 02:59:46 -08:00
|
|
|
{ stdenv, lib, fetchurl, gettext, perlPackages, intltool, pkgconfig, glib,
|
2019-05-22 04:03:39 -07:00
|
|
|
libxml2, sqlite, zlib, sg3_utils, gdk-pixbuf, taglib,
|
2020-03-01 06:51:43 -08:00
|
|
|
libimobiledevice,
|
2019-02-03 07:30:32 -08:00
|
|
|
monoSupport ? false, mono, gtk-sharp-2_0
|
2016-02-09 06:40:24 -08:00
|
|
|
}:
|
2009-04-13 08:41:00 -07:00
|
|
|
|
2019-12-12 02:59:46 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-12-03 20:32:32 -08:00
|
|
|
name = "libgpod-0.8.3";
|
2019-12-12 02:59:46 -08:00
|
|
|
|
2009-04-13 08:41:00 -07:00
|
|
|
src = fetchurl {
|
2012-01-05 15:16:06 -08:00
|
|
|
url = "mirror://sourceforge/gtkpod/${name}.tar.bz2";
|
2013-12-03 20:32:32 -08:00
|
|
|
sha256 = "0pcmgv1ra0ymv73mlj4qxzgyir026z9jpl5s5bkg35afs1cpk2k3";
|
2009-04-13 08:41:00 -07:00
|
|
|
};
|
|
|
|
|
2019-12-12 02:59:46 -08:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2012-01-05 15:16:06 -08:00
|
|
|
preConfigure = "configureFlagsArray=( --with-udev-dir=$out/lib/udev )";
|
2016-02-09 06:40:24 -08:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--without-hal"
|
|
|
|
"--enable-udev"
|
|
|
|
] ++ lib.optionals monoSupport [ "--with-mono" ];
|
|
|
|
|
|
|
|
dontStrip = true;
|
2010-09-26 12:40:22 -07:00
|
|
|
|
2012-01-05 15:16:06 -08:00
|
|
|
propagatedBuildInputs = [ glib libxml2 sqlite zlib sg3_utils
|
2020-03-01 06:51:43 -08:00
|
|
|
gdk-pixbuf taglib libimobiledevice ];
|
2010-09-27 09:22:40 -07:00
|
|
|
|
2018-10-12 15:56:15 -07:00
|
|
|
nativeBuildInputs = [ gettext intltool pkgconfig ]
|
|
|
|
++ (with perlPackages; [ perl XMLParser ])
|
|
|
|
++ lib.optionals monoSupport [ mono gtk-sharp-2_0 ];
|
2009-04-13 08:41:10 -07:00
|
|
|
|
|
|
|
meta = {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://gtkpod.sourceforge.net/";
|
2009-04-13 08:41:10 -07:00
|
|
|
description = "Library used by gtkpod to access the contents of an ipod";
|
|
|
|
license = "LGPL";
|
2018-04-30 15:47:47 -07:00
|
|
|
platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux;
|
2017-03-27 10:11:17 -07:00
|
|
|
maintainers = [ ];
|
2009-04-13 08:41:10 -07:00
|
|
|
};
|
2009-04-13 08:41:00 -07:00
|
|
|
}
|