libgpod: reduce propagated libraries, cleanup

This commit is contained in:
Sandro Jäckel 2022-03-27 15:19:27 +02:00
parent 85a633de9f
commit 073206c8e0
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -1,10 +1,23 @@
{ stdenv, lib, fetchurl, perlPackages, intltool, autoreconfHook,
pkg-config, glib, libxml2, sqlite, zlib, sg3_utils, gdk-pixbuf, taglib,
libimobiledevice,
monoSupport ? false, mono, gtk-sharp-2_0
{ stdenv
, lib
, fetchurl
, perlPackages
, intltool
, autoreconfHook
, pkg-config
, glib
, libxml2
, sqlite
, zlib
, sg3_utils
, gdk-pixbuf
, taglib
, libimobiledevice
, monoSupport ? false
, mono
, gtk-sharp-2_0
}:
stdenv.mkDerivation rec {
pname = "libgpod";
version = "0.8.3";
@ -27,20 +40,30 @@ stdenv.mkDerivation rec {
"--with-udev-dir=${placeholder "out"}/lib/udev"
] ++ lib.optionals monoSupport [ "--with-mono" ];
dontStrip = true;
propagatedBuildInputs = [ glib libxml2 sqlite zlib sg3_utils
gdk-pixbuf taglib libimobiledevice ];
dontStrip = monoSupport;
nativeBuildInputs = [ autoreconfHook intltool pkg-config ]
++ (with perlPackages; [ perl XMLParser ])
++ lib.optionals monoSupport [ mono gtk-sharp-2_0 ];
++ lib.optional monoSupport mono;
meta = {
homepage = "https://gtkpod.sourceforge.net/";
buildInputs = [
libxml2
sg3_utils
sqlite
taglib
] ++ lib.optional monoSupport gtk-sharp-2_0;
propagatedBuildInputs = [
gdk-pixbuf
glib
libimobiledevice
];
meta = with lib; {
homepage = "https://sourceforge.net/projects/gtkpod/";
description = "Library used by gtkpod to access the contents of an ipod";
license = "LGPL";
platforms = lib.platforms.gnu ++ lib.platforms.linux;
license = licenses.lgpl21Plus;
platforms = platforms.linux;
maintainers = [ ];
};
}