Merge pull request #231805 from wineee/deepin-screensaver
deepin.deepin-screensaver: init at 5.0.16
This commit is contained in:
commit
cc9b7d5611
2 changed files with 70 additions and 0 deletions
69
pkgs/desktops/deepin/apps/deepin-screensaver/default.nix
Normal file
69
pkgs/desktops/deepin/apps/deepin-screensaver/default.nix
Normal file
|
@ -0,0 +1,69 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, qmake
|
||||
, qttools
|
||||
, pkg-config
|
||||
, wrapQtAppsHook
|
||||
, qtbase
|
||||
, qtx11extras
|
||||
, qtdeclarative
|
||||
, dtkwidget
|
||||
, dde-qt-dbus-factory
|
||||
, xorg
|
||||
, xscreensaver
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "deepin-screensaver";
|
||||
version = "5.0.16";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "linuxdeepin";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-d/BllaXZxRdJe8nH+hhQIEutpBvAWFnBHWbIjznUfQU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs {src,customscreensaver/deepin-custom-screensaver}/{generate_translations.sh,update_translations.sh}
|
||||
|
||||
substituteInPlace src/{dbusscreensaver.cpp,com.deepin.ScreenSaver.service,src.pro} \
|
||||
customscreensaver/deepin-custom-screensaver/deepin-custom-screensaver.pro \
|
||||
--replace "/usr" "$out" \
|
||||
--replace "/etc" "$out/etc"
|
||||
|
||||
substituteInPlace tools/preview/main.cpp \
|
||||
--replace "/usr/lib/xscreensaver" "${xscreensaver}/libexec/xscreensaver"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
qmake
|
||||
qttools
|
||||
pkg-config
|
||||
wrapQtAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
qtbase
|
||||
qtx11extras
|
||||
qtdeclarative
|
||||
dtkwidget
|
||||
dde-qt-dbus-factory
|
||||
xorg.libXScrnSaver
|
||||
];
|
||||
|
||||
qmakeFlags = [
|
||||
"XSCREENSAVER_DATA_PATH=${xscreensaver}/libexec/xscreensaver"
|
||||
"COMPILE_ON_V23=false"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A screensaver service developed by deepin";
|
||||
homepage = "https://github.com/linuxdeepin/deepin-screensaver";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = teams.deepin.members;
|
||||
};
|
||||
}
|
||||
|
|
@ -57,6 +57,7 @@ let
|
|||
deepin-terminal = callPackage ./apps/deepin-terminal { };
|
||||
deepin-reader = callPackage ./apps/deepin-reader { };
|
||||
deepin-voice-note = callPackage ./apps/deepin-voice-note { };
|
||||
deepin-screensaver = callPackage ./apps/deepin-screensaver { };
|
||||
|
||||
#### Go Packages
|
||||
go-lib = callPackage ./go-package/go-lib { };
|
||||
|
|
Loading…
Reference in a new issue