dde-network-core: 1.1.8 -> 2.0.15

This commit is contained in:
rewine 2023-09-26 16:07:29 +08:00
parent 7613b21f12
commit 5cf7c0bc9b
No known key found for this signature in database
GPG key ID: 2964FF5514455F51

View file

@ -5,41 +5,28 @@
, qttools
, pkg-config
, wrapQtAppsHook
, qtbase
, qtsvg
, dtkwidget
, dde-dock
, dde-control-center
, dde-session-shell
, dde-qt-dbus-factory
, gsettings-qt
, gio-qt
, networkmanager-qt
, glib
, pcre
, util-linux
, libselinux
, libsepol
, dbus
, gtest
, qtbase
}:
stdenv.mkDerivation rec {
pname = "dde-network-core";
version = "1.1.8";
version = "2.0.15";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "sha256-ysmdB9CT7mhN/0r8CRT4FQsK12HkhjbezGXwWiNScqg=";
hash = "sha256-AMuWEz3Eyw0tG0srLWpqS7MO7Z4ZzIay4z59cZQZU0o=";
};
postPatch = ''
substituteInPlace dock-network-plugin/networkplugin.cpp dcc-network-plugin/dccnetworkmodule.cpp dss-network-plugin/network_module.cpp \
--replace "/usr/share" "$out/share"
substituteInPlace dss-network-plugin/notification/bubbletool.cpp \
--replace "/usr/share" "/run/current-system/sw/share"
'';
nativeBuildInputs = [
cmake
qttools
@ -48,19 +35,14 @@ stdenv.mkDerivation rec {
];
buildInputs = [
qtbase
qtsvg
dtkwidget
dde-dock
dde-control-center
dde-session-shell
dde-qt-dbus-factory
gsettings-qt
gio-qt
networkmanager-qt
glib
pcre
util-linux
libselinux
libsepol
gtest
];
@ -68,6 +50,8 @@ stdenv.mkDerivation rec {
"-DVERSION=${version}"
];
strictDeps = true;
meta = with lib; {
description = "DDE network library framework";
homepage = "https://github.com/linuxdeepin/dde-network-core";