mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
libextractor: cleanup
This commit is contained in:
parent
c01a28d021
commit
3d7b9b0356
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user