2019-07-22 03:53:18 +01:00
|
|
|
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, qmake, qttools, polkit-qt,
|
2018-11-15 02:00:15 +00:00
|
|
|
dtkcore, dtkwidget, dde-qt-dbus-factory, deepin }:
|
|
|
|
|
2019-07-22 03:53:18 +01:00
|
|
|
mkDerivation rec {
|
2018-11-15 02:00:15 +00:00
|
|
|
pname = "dde-polkit-agent";
|
2019-11-12 01:08:38 +00:00
|
|
|
version = "5.0.0";
|
2018-11-15 02:00:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-11-12 01:08:38 +00:00
|
|
|
sha256 = "00p8syx6rfwhq7wdsk37hm9mvwd0kwj9h0s39hii892h1psd84q9";
|
2018-11-15 02:00:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
qmake
|
|
|
|
qttools
|
2019-01-27 01:57:04 +00:00
|
|
|
deepin.setupHook
|
2018-11-15 02:00:15 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dde-qt-dbus-factory
|
|
|
|
dtkcore
|
|
|
|
dtkwidget
|
|
|
|
polkit-qt
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2019-01-27 01:57:04 +00:00
|
|
|
searchHardCodedPaths
|
|
|
|
patchShebangs translate_generation.sh
|
2018-11-15 02:00:15 +00:00
|
|
|
|
2019-01-27 01:57:04 +00:00
|
|
|
fixPath $out /usr dde-polkit-agent.pro polkit-dde-authentication-agent-1.desktop
|
|
|
|
fixPath /run/current-system/sw /usr/lib/polkit-1-dde/plugins pluginmanager.cpp
|
|
|
|
'';
|
2018-11-15 02:09:32 +00:00
|
|
|
|
2019-01-27 01:57:04 +00:00
|
|
|
postFixup = ''
|
|
|
|
searchHardCodedPaths $out
|
2018-11-15 02:00:15 +00:00
|
|
|
'';
|
|
|
|
|
2019-08-15 13:41:18 +01:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit ;name = "${pname}-${version}"; };
|
2018-11-15 02:00:15 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|