2022-04-03 18:54:34 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchpatch
|
2022-04-03 18:54:34 +00:00
|
|
|
, perlPackages
|
|
|
|
, intltool
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, libxml2
|
|
|
|
, sqlite
|
|
|
|
, zlib
|
|
|
|
, sg3_utils
|
|
|
|
, gdk-pixbuf
|
|
|
|
, taglib
|
|
|
|
, libimobiledevice
|
|
|
|
, monoSupport ? false
|
|
|
|
, mono
|
|
|
|
, gtk-sharp-2_0
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-01-13 20:06:32 +00:00
|
|
|
pname = "libgpod";
|
|
|
|
version = "0.8.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-01-13 20:06:32 +00:00
|
|
|
url = "mirror://sourceforge/gtkpod/libgpod-${version}.tar.bz2";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-Y4p5WdBOlfHmKrrQK9M3AuTo3++YSFrH2dUDlcN+lV0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "libplist-2.3.0-compatibility.patch";
|
|
|
|
url = "https://sourceforge.net/p/gtkpod/patches/48/attachment/libplist-2.3.0-compatibility.patch";
|
|
|
|
hash = "sha256-aVkuYE1N/jdEhVhiXEVhApvOC+8csIMMpP20rAJwEVQ=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-12-09 12:39:15 +00:00
|
|
|
postPatch = ''
|
|
|
|
# support libplist 2.2
|
|
|
|
substituteInPlace configure.ac --replace 'libplist >= 1.0' 'libplist-2.0 >= 2.2'
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--without-hal"
|
|
|
|
"--enable-udev"
|
2020-12-09 12:39:15 +00:00
|
|
|
"--with-udev-dir=${placeholder "out"}/lib/udev"
|
2020-04-24 23:36:52 +00:00
|
|
|
] ++ lib.optionals monoSupport [ "--with-mono" ];
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
dontStrip = monoSupport;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-09 12:39:15 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook intltool pkg-config ]
|
2020-04-24 23:36:52 +00:00
|
|
|
++ (with perlPackages; [ perl XMLParser ])
|
2022-04-03 18:54:34 +00:00
|
|
|
++ lib.optional monoSupport mono;
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libxml2
|
|
|
|
sg3_utils
|
|
|
|
sqlite
|
|
|
|
taglib
|
|
|
|
] ++ lib.optional monoSupport gtk-sharp-2_0;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
libimobiledevice
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://sourceforge.net/projects/gtkpod/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Library used by gtkpod to access the contents of an ipod";
|
2022-04-03 18:54:34 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ ];
|
|
|
|
};
|
|
|
|
}
|