3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libqtav/default.nix
aszlig a8989e6bb0
libqtav: unstable-2017-03-30 -> 1.12.0
This was actually already mentioned in the comment above version:

  Awaiting upcoming `v1.12.0` release. `v1.11.0` is not supporting
  cmake which is the the reason behind taking an unstable git rev.

So version 1.12.0 has been released in the meantime and it's also needed
by the latest version of digiKam, which is the only package in nixpkgs
that depends on libqtav.

As we're going to bump digiKam, I think bumping this is safe as in the
worst case we can only make things broken which are already broken
(digiKam currently doesn't build).

The fixes for the CMakeLists.txt are now also no longer needed, so we
can safely drop them as well.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @jraygauthier
2017-10-19 04:07:30 +02:00

50 lines
1.4 KiB
Nix

{ mkDerivation, lib, fetchFromGitHub, extra-cmake-modules
, qtbase, qtmultimedia, qtquick1, qttools
, mesa, libX11
, libass, openal, ffmpeg, libuchardet
, alsaLib, libpulseaudio, libva
}:
with lib;
mkDerivation rec {
name = "libqtav-${version}";
version = "1.12.0";
nativeBuildInputs = [ extra-cmake-modules qttools ];
buildInputs = [
qtbase qtmultimedia qtquick1
mesa libX11
libass openal ffmpeg libuchardet
alsaLib libpulseaudio libva
];
src = fetchFromGitHub {
sha256 = "03ii9l38l3fsr27g42fx4151ipzkip2kr4akdr8x28sx5r9rr5m2";
rev = "v${version}";
repo = "QtAV";
owner = "wang-bin";
fetchSubmodules = true;
};
# Make sure libqtav finds its libGL dependancy at both link and run time
# by adding mesa to rpath. Not sure why it wasn't done automatically like
# the other libraries as `mesa` is part of our `buildInputs`.
NIX_CFLAGS_LINK = [ "-Wl,-rpath,${mesa}/lib"];
preFixup = ''
mkdir -p "$out/bin"
cp -a "./bin/"* "$out/bin"
'';
meta = {
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/;
maintainers = [ maintainers.jraygauthier ];
platforms = platforms.linux;
};
}