From 073206c8e017533f76418ba180db35021a46d6f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 27 Mar 2022 15:19:27 +0200 Subject: [PATCH] libgpod: reduce propagated libraries, cleanup --- .../development/libraries/libgpod/default.nix | 51 ++++++++++++++----- 1 file changed, 37 insertions(+), 14 deletions(-) diff --git a/pkgs/development/libraries/libgpod/default.nix b/pkgs/development/libraries/libgpod/default.nix index e56e512931a0..590aaf27c5f0 100644 --- a/pkgs/development/libraries/libgpod/default.nix +++ b/pkgs/development/libraries/libgpod/default.nix @@ -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 = [ ]; }; }