mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
libqtav: Reduce closure size from 734 to 457 MiB
This commit is contained in:
parent
c8a2533516
commit
cd3a0b7f38
1 changed files with 9 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
|||
{ mkDerivation, lib, fetchFromGitHub, extra-cmake-modules
|
||||
, qtbase, qtmultimedia, qtquick1, qttools
|
||||
, libGLU_combined, libX11
|
||||
, libGL, libX11
|
||||
, libass, openal, ffmpeg, libuchardet
|
||||
, alsaLib, libpulseaudio, libva
|
||||
}:
|
||||
|
@ -14,7 +14,7 @@ mkDerivation rec {
|
|||
nativeBuildInputs = [ extra-cmake-modules qttools ];
|
||||
buildInputs = [
|
||||
qtbase qtmultimedia qtquick1
|
||||
libGLU_combined libX11
|
||||
libGL libX11
|
||||
libass openal ffmpeg libuchardet
|
||||
alsaLib libpulseaudio libva
|
||||
];
|
||||
|
@ -27,18 +27,20 @@ mkDerivation rec {
|
|||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
# Make sure libqtav finds its libGL dependancy at both link and run time
|
||||
# by adding libGLU_combined to rpath. Not sure why it wasn't done automatically like
|
||||
# the other libraries as `libGLU_combined` is part of our `buildInputs`.
|
||||
NIX_CFLAGS_LINK = [ "-Wl,-rpath,${libGLU_combined}/lib"];
|
||||
# Make sure libqtav finds its libGL dependency at both link and run time
|
||||
# by adding libGL to rpath. Not sure why it wasn't done automatically like
|
||||
# the other libraries as `libGL` is part of our `buildInputs`.
|
||||
NIX_CFLAGS_LINK = [ "-Wl,-rpath,${libGL}/lib"];
|
||||
|
||||
preFixup = ''
|
||||
mkdir -p "$out/bin"
|
||||
cp -a "./bin/"* "$out/bin"
|
||||
'';
|
||||
|
||||
stripDebugList = [ "lib" "libexec" "bin" "qml" ];
|
||||
|
||||
meta = {
|
||||
description = "A multimedia playback framework based on Qt + FFmpeg.";
|
||||
description = "A multimedia playback framework based on Qt + FFmpeg";
|
||||
#license = licenses.lgpl21; # For the libraries / headers only.
|
||||
license = licenses.gpl3; # With the examples (under bin) and most likely some of the optional dependencies used.
|
||||
homepage = http://www.qtav.org/;
|
||||
|
|
Loading…
Reference in a new issue