2019-11-12 02:08:39 +01:00
|
|
|
{ stdenv, mkDerivation, fetchFromGitHub, fetchpatch, cmake, pkgconfig, qttools, qtx11extras,
|
2018-10-18 11:36:14 +02:00
|
|
|
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
|
|
|
|
2019-07-22 04:53:18 +02:00
|
|
|
mkDerivation rec {
|
2018-10-18 11:36:14 +02:00
|
|
|
pname = "deepin-movie-reborn";
|
2019-11-12 02:08:39 +01:00
|
|
|
version = "5.0.0";
|
2018-10-18 11:36:14 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-11-12 02:08:39 +01:00
|
|
|
sha256 = "0cly8q0514a58s3h3wsvx9yxar7flz6i2q8xkrkfjias22b3z7b0";
|
2018-10-18 11:36:14 +02:00
|
|
|
};
|
|
|
|
|
2019-05-16 12:56:35 +02:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2018-10-18 11:36:14 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkgconfig
|
|
|
|
qttools
|
2019-11-12 02:08:39 +01:00
|
|
|
deepin.setupHook
|
2018-10-18 11:36:14 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dtkcore
|
|
|
|
dtkwidget
|
|
|
|
ffmpeg
|
|
|
|
ffmpegthumbnailer
|
|
|
|
libdvdnav
|
|
|
|
libdvdread
|
|
|
|
mpv
|
|
|
|
pulseaudio
|
|
|
|
qtx11extras
|
|
|
|
xorg.libXdmcp
|
|
|
|
xorg.libXtst
|
|
|
|
xorg.libpthreadstubs
|
|
|
|
xorg.xcbproto
|
|
|
|
];
|
|
|
|
|
2019-11-12 02:08:39 +01:00
|
|
|
patches = [
|
|
|
|
# fix: build failed if cannot find dtk-settings tool
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/linuxdeepin/deepin-movie-reborn/commit/fbb307b.patch";
|
|
|
|
sha256 = "0915za0khki0729rvcfpxkh6vxhqwc47cgcmjc90kfq1004221vx";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-10-18 11:36:14 +02:00
|
|
|
NIX_LDFLAGS = "-ldvdnav";
|
|
|
|
|
2019-11-12 02:08:39 +01:00
|
|
|
|
2018-10-18 11:36:14 +02:00
|
|
|
postPatch = ''
|
2019-11-12 02:08:39 +01:00
|
|
|
searchHardCodedPaths # debugging
|
|
|
|
|
2018-10-18 11:36:14 +02:00
|
|
|
sed -i src/libdmr/libdmr.pc.in -e "s,/usr,$out," -e 's,libdir=''${prefix}/,libdir=,'
|
2019-11-12 02:08:39 +01:00
|
|
|
|
|
|
|
substituteInPlace src/deepin-movie.desktop \
|
|
|
|
--replace "Exec=deepin-movie" "Exec=$out/bin/deepin-movie"
|
2018-10-18 11:36:14 +02:00
|
|
|
'';
|
|
|
|
|
2019-12-04 10:20:00 +01:00
|
|
|
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
|
2018-10-30 23:17:45 +01:00
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|