libextractor: cleanup

This commit is contained in:
Sandro Jäckel 2022-12-16 22:05:09 +01:00
parent c01a28d021
commit 3d7b9b0356
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -1,7 +1,7 @@
{ fetchurl, lib, stdenv, substituteAll { fetchurl, lib, stdenv, substituteAll
, libtool, gettext, zlib, bzip2, flac, libvorbis , libtool, gettext, zlib, bzip2, flac, libvorbis
, exiv2, libgsf, rpm, pkg-config , exiv2, libgsf, rpm, pkg-config
, gstreamerSupport ? true, gst_all_1 ? null , gstreamerSupport ? true, gst_all_1
# ^ Needed e.g. for proper id3 and FLAC support. # ^ Needed e.g. for proper id3 and FLAC support.
# Set to `false` to decrease package closure size by about 87 MB (53%). # Set to `false` to decrease package closure size by about 87 MB (53%).
, gstPlugins ? (gst: [ gst.gst-plugins-base gst.gst-plugins-good ]) , gstPlugins ? (gst: [ gst.gst-plugins-base gst.gst-plugins-good ])
@ -12,12 +12,9 @@
# wrapProgram $out/bin/extract --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0" # wrapProgram $out/bin/extract --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
# ''; # '';
# See also <https://nixos.org/nixpkgs/manual/#sec-language-gnome>. # See also <https://nixos.org/nixpkgs/manual/#sec-language-gnome>.
, gtkSupport ? true, glib ? null, gtk3 ? null , gtkSupport ? true, glib, gtk3
, videoSupport ? true, ffmpeg ? null, libmpeg2 ? null}: , videoSupport ? true, ffmpeg, libmpeg2
}:
assert gstreamerSupport -> gst_all_1 != null && builtins.isList (gstPlugins gst_all_1);
assert gtkSupport -> glib != null && gtk3 != null;
assert videoSupport -> ffmpeg != null && libmpeg2 != null;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libextractor"; pname = "libextractor";