deepin.deepin-screen-recorder: init at 5.11.23
This commit is contained in:
parent
58473be22e
commit
4873ea0b90
3 changed files with 134 additions and 0 deletions
97
pkgs/desktops/deepin/apps/deepin-screen-recorder/default.nix
Normal file
97
pkgs/desktops/deepin/apps/deepin-screen-recorder/default.nix
Normal file
|
@ -0,0 +1,97 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, qmake
|
||||
, pkg-config
|
||||
, qttools
|
||||
, wrapQtAppsHook
|
||||
, dtkwidget
|
||||
, qt5integration
|
||||
, dde-qt-dbus-factory
|
||||
, dde-dock
|
||||
, qtbase
|
||||
, qtmultimedia
|
||||
, qtx11extras
|
||||
, image-editor
|
||||
, gsettings-qt
|
||||
, xorg
|
||||
, libusb1
|
||||
, libv4l
|
||||
, ffmpeg
|
||||
, ffmpegthumbnailer
|
||||
, portaudio
|
||||
, kwayland
|
||||
, udev
|
||||
, gst_all_1
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "deepin-screen-recorder";
|
||||
version = "5.11.23";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "linuxdeepin";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-yKBF/MmhlgwO5GLwfGgs13ERuzOg8EYjc3bXZ8TvcBU=";
|
||||
};
|
||||
|
||||
patches = [ ./dont_use_libPath.diff ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace screen_shot_recorder.pro deepin-screen-recorder.desktop \
|
||||
src/{src.pro,pin_screenshots/pin_screenshots.pro} \
|
||||
src/dde-dock-plugins/{shotstart/shotstart.pro,recordtime/recordtime.pro} \
|
||||
assets/com.deepin.Screenshot.service \
|
||||
--replace "/usr" "$out"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
qmake
|
||||
pkg-config
|
||||
qttools
|
||||
wrapQtAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
dtkwidget
|
||||
dde-qt-dbus-factory
|
||||
dde-dock
|
||||
qtbase
|
||||
qtmultimedia
|
||||
qtx11extras
|
||||
image-editor
|
||||
gsettings-qt
|
||||
xorg.libXdmcp
|
||||
xorg.libXtst
|
||||
xorg.libXcursor
|
||||
libusb1
|
||||
libv4l
|
||||
ffmpeg
|
||||
ffmpegthumbnailer
|
||||
portaudio
|
||||
kwayland
|
||||
udev
|
||||
] ++ (with gst_all_1; [
|
||||
gstreamer
|
||||
gst-plugins-base
|
||||
gst-plugins-good
|
||||
]);
|
||||
|
||||
# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
|
||||
qtWrapperArgs = [
|
||||
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
|
||||
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ udev gst_all_1.gstreamer ]}"
|
||||
];
|
||||
|
||||
preFixup = ''
|
||||
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Screen recorder application for dde";
|
||||
homepage = "https://github.com/linuxdeepin/deepin-screen-recorder";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = teams.deepin.members;
|
||||
};
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
diff --git a/src/gstrecord/gstinterface.cpp b/src/gstrecord/gstinterface.cpp
|
||||
index b269b01..c075295 100644
|
||||
--- a/src/gstrecord/gstinterface.cpp
|
||||
+++ b/src/gstrecord/gstinterface.cpp
|
||||
@@ -48,6 +48,7 @@ gstInterface::gstInterface()
|
||||
}
|
||||
QString gstInterface::libPath(const QString &sLib)
|
||||
{
|
||||
+ return sLib;
|
||||
qInfo() << "gstreamer lib name is " << sLib;
|
||||
QDir dir;
|
||||
QString path = QLibraryInfo::location(QLibraryInfo::LibrariesPath);
|
||||
diff --git a/src/main_window.cpp b/src/main_window.cpp
|
||||
index 7bfc78e..dcbbc2f 100755
|
||||
--- a/src/main_window.cpp
|
||||
+++ b/src/main_window.cpp
|
||||
@@ -585,6 +585,7 @@ void MainWindow::initDynamicLibPath()
|
||||
}
|
||||
QString MainWindow::libPath(const QString &strlib)
|
||||
{
|
||||
+ return strlib;
|
||||
QDir dir;
|
||||
QString path = QLibraryInfo::location(QLibraryInfo::LibrariesPath);
|
||||
dir.setPath(path);
|
||||
diff --git a/src/waylandrecord/avlibinterface.cpp b/src/waylandrecord/avlibinterface.cpp
|
||||
index d7942d6..c5cfdf4 100644
|
||||
--- a/src/waylandrecord/avlibinterface.cpp
|
||||
+++ b/src/waylandrecord/avlibinterface.cpp
|
||||
@@ -105,6 +105,7 @@ avlibInterface::avlibInterface()
|
||||
|
||||
QString avlibInterface::libPath(const QString &sLib)
|
||||
{
|
||||
+ return sLib;
|
||||
//qDebug() << sLib;
|
||||
QDir dir;
|
||||
QString path = QLibraryInfo::location(QLibraryInfo::LibrariesPath);
|
|
@ -48,6 +48,7 @@ let
|
|||
deepin-movie-reborn = callPackage ./apps/deepin-movie-reborn { };
|
||||
deepin-music = callPackage ./apps/deepin-music { };
|
||||
deepin-picker = callPackage ./apps/deepin-picker { };
|
||||
deepin-screen-recorder = callPackage ./apps/deepin-screen-recorder { };
|
||||
deepin-shortcut-viewer = callPackage ./apps/deepin-shortcut-viewer { };
|
||||
deepin-terminal = callPackage ./apps/deepin-terminal { };
|
||||
deepin-reader = callPackage ./apps/deepin-reader { };
|
||||
|
|
Loading…
Reference in a new issue