dde-application-manager: init at 1.0.19

This commit is contained in:
rewine 2023-09-26 18:09:57 +08:00
parent 9b42610217
commit 3f1eb313e0
No known key found for this signature in database
GPG key ID: 2964FF5514455F51
2 changed files with 65 additions and 0 deletions

View file

@ -0,0 +1,64 @@
{ stdenv
, lib
, fetchFromGitHub
, cmake
, pkg-config
, wrapQtAppsHook
, qtbase
, dtkwidget
, dde-polkit-agent
, gsettings-qt
, libcap
, jemalloc
, xorg
, iconv
}:
stdenv.mkDerivation rec {
pname = "dde-application-manager";
version = "1.0.19";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
hash = "sha256-1P265xqlL/wML66nKdfTgkRx6MCpLwrt5rXu+CyeShU=";
};
# remove this patch after next release
postPatch = ''
substituteInPlace src/modules/mimeapp/mime_app.cpp src/modules/launcher/common.h src/service/main.cpp \
misc/dconf/com.deepin.dde.appearance.json \
--replace "/usr/share" "/run/current-system/sw/share"
substituteInPlace src/lib/dlocale.cpp --replace "/usr/share/locale/locale.alias" "${iconv}/share/locale/locale.alias"
for file in $(grep -rl "/usr/bin"); do
substituteInPlace $file --replace "/usr/bin/" "/run/current-system/sw/bin/"
done
'';
nativeBuildInputs = [
cmake
pkg-config
wrapQtAppsHook
];
buildInputs = [
qtbase
dtkwidget
gsettings-qt
libcap
jemalloc
xorg.libXdmcp
xorg.libXres
];
meta = with lib; {
description = "Application manager for DDE";
homepage = "https://github.com/linuxdeepin/dde-application-manager";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = teams.deepin.members;
};
}

View file

@ -27,6 +27,7 @@ let
deepin-kwin = callPackage ./core/deepin-kwin { };
dde-appearance = callPackage ./core/dde-appearance { };
dde-app-services = callPackage ./core/dde-app-services { };
dde-application-manager = callPackage ./core/dde-application-manager { };
dde-control-center = callPackage ./core/dde-control-center { };
dde-calendar = callPackage ./core/dde-calendar { };
dde-clipboard = callPackage ./core/dde-clipboard { };