mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
gerbera: don't pass pkgs as argument
This commit is contained in:
parent
3673ad819f
commit
013953c89b
1 changed files with 20 additions and 21 deletions
|
@ -2,18 +2,17 @@
|
|||
, cmake, pkg-config
|
||||
# required
|
||||
, libupnp, libuuid, pugixml, libiconv, sqlite, zlib, spdlog, fmt
|
||||
, pkgs
|
||||
# options
|
||||
, enableDuktape ? true
|
||||
, enableCurl ? true
|
||||
, enableTaglib ? true
|
||||
, enableLibmagic ? true
|
||||
, enableLibmatroska ? true
|
||||
, enableAvcodec ? false
|
||||
, enableLibexif ? true
|
||||
, enableExiv2 ? false
|
||||
, enableFFmpegThumbnailer ? false
|
||||
, enableInotifyTools ? true
|
||||
, enableDuktape ? true, duktape
|
||||
, enableCurl ? true, curl
|
||||
, enableTaglib ? true, taglib
|
||||
, enableLibmagic ? true, file
|
||||
, enableLibmatroska ? true, libmatroska, libebml
|
||||
, enableAvcodec ? false, libav
|
||||
, enableLibexif ? true, libexif
|
||||
, enableExiv2 ? false, exiv2
|
||||
, enableFFmpegThumbnailer ? false, ffmpegthumbnailer
|
||||
, enableInotifyTools ? true, inotify-tools
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
@ -51,16 +50,16 @@ in stdenv.mkDerivation rec {
|
|||
libupnp libuuid pugixml libiconv sqlite zlib fmt.dev
|
||||
spdlog
|
||||
]
|
||||
++ optionals enableDuktape [ pkgs.duktape ]
|
||||
++ optionals enableCurl [ pkgs.curl ]
|
||||
++ optionals enableTaglib [ pkgs.taglib ]
|
||||
++ optionals enableLibmagic [ pkgs.file ]
|
||||
++ optionals enableLibmatroska [ pkgs.libmatroska pkgs.libebml ]
|
||||
++ optionals enableAvcodec [ pkgs.libav.dev ]
|
||||
++ optionals enableLibexif [ pkgs.libexif ]
|
||||
++ optionals enableExiv2 [ pkgs.exiv2 ]
|
||||
++ optionals enableInotifyTools [ pkgs.inotify-tools ]
|
||||
++ optionals enableFFmpegThumbnailer [ pkgs.ffmpegthumbnailer ];
|
||||
++ optionals enableDuktape [ duktape ]
|
||||
++ optionals enableCurl [ curl ]
|
||||
++ optionals enableTaglib [ taglib ]
|
||||
++ optionals enableLibmagic [ file ]
|
||||
++ optionals enableLibmatroska [ libmatroska libebml ]
|
||||
++ optionals enableAvcodec [ libav.dev ]
|
||||
++ optionals enableLibexif [ libexif ]
|
||||
++ optionals enableExiv2 [ exiv2 ]
|
||||
++ optionals enableInotifyTools [ inotify-tools ]
|
||||
++ optionals enableFFmpegThumbnailer [ ffmpegthumbnailer ];
|
||||
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue