2018-10-18 11:36:14 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, qttools, qtx11extras,
|
|
|
|
dtkcore, dtkwidget, ffmpeg, ffmpegthumbnailer, mpv, pulseaudio,
|
2018-10-30 23:17:45 +01:00
|
|
|
libdvdnav, libdvdread, xorg, deepin }:
|
2018-10-18 11:36:14 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "deepin-movie-reborn";
|
2019-05-04 13:41:59 +02:00
|
|
|
version = "3.2.22.1";
|
2018-10-18 11:36:14 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-05-04 13:41:59 +02:00
|
|
|
sha256 = "1qh079j4c2n33z0ykv87af9vfkmdxxrv6dy54wdqdpr7vrhn89gb";
|
2018-10-18 11:36:14 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkgconfig
|
|
|
|
qttools
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dtkcore
|
|
|
|
dtkwidget
|
|
|
|
ffmpeg
|
|
|
|
ffmpegthumbnailer
|
|
|
|
libdvdnav
|
|
|
|
libdvdread
|
|
|
|
mpv
|
|
|
|
pulseaudio
|
|
|
|
qtx11extras
|
|
|
|
xorg.libXdmcp
|
|
|
|
xorg.libXtst
|
|
|
|
xorg.libpthreadstubs
|
|
|
|
xorg.xcbproto
|
|
|
|
];
|
|
|
|
|
|
|
|
NIX_LDFLAGS = "-ldvdnav";
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i src/CMakeLists.txt -e "s,/usr/lib/dtk2,${dtkcore}/lib/dtk2,"
|
|
|
|
sed -i src/libdmr/libdmr.pc.in -e "s,/usr,$out," -e 's,libdir=''${prefix}/,libdir=,'
|
|
|
|
'';
|
|
|
|
|
2018-10-30 23:17:45 +01:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit name; };
|
|
|
|
|
2018-10-18 11:36:14 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Deepin movie player";
|
|
|
|
homepage = https://github.com/linuxdeepin/deepin-movie-reborn;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|