Revert "deepin: remove obseleted dde-polkit-agent and dpa-ext-gnomekeyring"
This commit is contained in:
parent
0a971b5a04
commit
49c492773a
3 changed files with 93 additions and 0 deletions
48
pkgs/desktops/deepin/dde-polkit-agent/default.nix
Normal file
48
pkgs/desktops/deepin/dde-polkit-agent/default.nix
Normal file
|
@ -0,0 +1,48 @@
|
|||
{ stdenv, fetchFromGitHub, pkgconfig, qmake, qttools, polkit-qt,
|
||||
dtkcore, dtkwidget, dde-qt-dbus-factory, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "dde-polkit-agent";
|
||||
version = "0.2.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "linuxdeepin";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1n3hys5hhhd99ycpx4im6ihy53vl9c28z7ls7smn117h3ca4c8wc";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkgconfig
|
||||
qmake
|
||||
qttools
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
dde-qt-dbus-factory
|
||||
dtkcore
|
||||
dtkwidget
|
||||
polkit-qt
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs .
|
||||
|
||||
sed -i dde-polkit-agent.pro polkit-dde-authentication-agent-1.desktop \
|
||||
-e "s,/usr,$out,"
|
||||
|
||||
sed -i pluginmanager.cpp \
|
||||
-e "s,/usr/lib/polkit-1-dde/plugins,/run/current-system/sw/lib/polkit-1-dde/plugins,"
|
||||
'';
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "PolicyKit agent for Deepin Desktop Environment";
|
||||
homepage = https://github.com/linuxdeepin/dde-polkit-agent;
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ romildo ];
|
||||
};
|
||||
}
|
|
@ -16,6 +16,7 @@ let
|
|||
# XXX: the build is finding references to Go when compiled with go v1.12
|
||||
go = go_1_11;
|
||||
};
|
||||
dde-polkit-agent = callPackage ./dde-polkit-agent { };
|
||||
dde-qt-dbus-factory = callPackage ./dde-qt-dbus-factory { };
|
||||
dde-session-ui = callPackage ./dde-session-ui { };
|
||||
deepin-desktop-base = callPackage ./deepin-desktop-base { };
|
||||
|
@ -36,6 +37,7 @@ let
|
|||
};
|
||||
deepin-wallpapers = callPackage ./deepin-wallpapers { };
|
||||
deepin-wm = callPackage ./deepin-wm { };
|
||||
dpa-ext-gnomekeyring = callPackage ./dpa-ext-gnomekeyring { };
|
||||
dtkcore = callPackage ./dtkcore { };
|
||||
dtkwm = callPackage ./dtkwm { };
|
||||
dtkwidget = callPackage ./dtkwidget { };
|
||||
|
|
43
pkgs/desktops/deepin/dpa-ext-gnomekeyring/default.nix
Normal file
43
pkgs/desktops/deepin/dpa-ext-gnomekeyring/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{ stdenv, fetchFromGitHub, pkgconfig, qmake, qttools, gnome3,
|
||||
dde-polkit-agent, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "dpa-ext-gnomekeyring";
|
||||
version = "0.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "linuxdeepin";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "168j42nwyw7vcgwc0fha2pjpwwlgir70fq1hns4ia1dkdqa1nhzw";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkgconfig
|
||||
qmake
|
||||
qttools
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
dde-polkit-agent
|
||||
gnome3.libgnome-keyring
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs .
|
||||
|
||||
sed -i dpa-ext-gnomekeyring.pro gnomekeyringextention.cpp \
|
||||
-e "s,/usr,$out,"
|
||||
'';
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "GNOME keyring extension for dde-polkit-agent";
|
||||
homepage = https://github.com/linuxdeepin/dpa-ext-gnomekeyring;
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ romildo ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue