gerbera: don't pass pkgs as argument

This commit is contained in:
Robert Schütz 2021-02-02 10:24:27 +01:00
parent 3673ad819f
commit 013953c89b

View file

@ -2,18 +2,17 @@
, cmake, pkg-config , cmake, pkg-config
# required # required
, libupnp, libuuid, pugixml, libiconv, sqlite, zlib, spdlog, fmt , libupnp, libuuid, pugixml, libiconv, sqlite, zlib, spdlog, fmt
, pkgs
# options # options
, enableDuktape ? true , enableDuktape ? true, duktape
, enableCurl ? true , enableCurl ? true, curl
, enableTaglib ? true , enableTaglib ? true, taglib
, enableLibmagic ? true , enableLibmagic ? true, file
, enableLibmatroska ? true , enableLibmatroska ? true, libmatroska, libebml
, enableAvcodec ? false , enableAvcodec ? false, libav
, enableLibexif ? true , enableLibexif ? true, libexif
, enableExiv2 ? false , enableExiv2 ? false, exiv2
, enableFFmpegThumbnailer ? false , enableFFmpegThumbnailer ? false, ffmpegthumbnailer
, enableInotifyTools ? true , enableInotifyTools ? true, inotify-tools
}: }:
with lib; with lib;
@ -51,16 +50,16 @@ in stdenv.mkDerivation rec {
libupnp libuuid pugixml libiconv sqlite zlib fmt.dev libupnp libuuid pugixml libiconv sqlite zlib fmt.dev
spdlog spdlog
] ]
++ optionals enableDuktape [ pkgs.duktape ] ++ optionals enableDuktape [ duktape ]
++ optionals enableCurl [ pkgs.curl ] ++ optionals enableCurl [ curl ]
++ optionals enableTaglib [ pkgs.taglib ] ++ optionals enableTaglib [ taglib ]
++ optionals enableLibmagic [ pkgs.file ] ++ optionals enableLibmagic [ file ]
++ optionals enableLibmatroska [ pkgs.libmatroska pkgs.libebml ] ++ optionals enableLibmatroska [ libmatroska libebml ]
++ optionals enableAvcodec [ pkgs.libav.dev ] ++ optionals enableAvcodec [ libav.dev ]
++ optionals enableLibexif [ pkgs.libexif ] ++ optionals enableLibexif [ libexif ]
++ optionals enableExiv2 [ pkgs.exiv2 ] ++ optionals enableExiv2 [ exiv2 ]
++ optionals enableInotifyTools [ pkgs.inotify-tools ] ++ optionals enableInotifyTools [ inotify-tools ]
++ optionals enableFFmpegThumbnailer [ pkgs.ffmpegthumbnailer ]; ++ optionals enableFFmpegThumbnailer [ ffmpegthumbnailer ];
meta = with lib; { meta = with lib; {