nixpkgs/pkgs/development/libraries/libgpod/default.nix

46 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, lib, fetchurl, perlPackages, intltool, autoreconfHook,
pkg-config, glib, libxml2, sqlite, zlib, sg3_utils, gdk-pixbuf, taglib,
libimobiledevice,
2019-02-03 15:30:32 +00:00
monoSupport ? false, mono, gtk-sharp-2_0
2016-02-09 14:40:24 +00:00
}:
stdenv.mkDerivation rec {
2013-12-04 04:32:32 +00:00
name = "libgpod-0.8.3";
src = fetchurl {
url = "mirror://sourceforge/gtkpod/${name}.tar.bz2";
2013-12-04 04:32:32 +00:00
sha256 = "0pcmgv1ra0ymv73mlj4qxzgyir026z9jpl5s5bkg35afs1cpk2k3";
};
outputs = [ "out" "dev" ];
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"
"--with-udev-dir=${placeholder "out"}/lib/udev"
2016-02-09 14:40:24 +00:00
] ++ lib.optionals monoSupport [ "--with-mono" ];
dontStrip = true;
propagatedBuildInputs = [ glib libxml2 sqlite zlib sg3_utils
gdk-pixbuf taglib libimobiledevice ];
nativeBuildInputs = [ autoreconfHook intltool pkg-config ]
++ (with perlPackages; [ perl XMLParser ])
++ lib.optionals monoSupport [ mono gtk-sharp-2_0 ];
meta = {
homepage = "https://gtkpod.sourceforge.net/";
description = "Library used by gtkpod to access the contents of an ipod";
license = "LGPL";
platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux;
maintainers = [ ];
};
}