2018-11-15 02:00:15 +00:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, qmake, qttools, polkit-qt,
|
|
|
|
dtkcore, dtkwidget, dde-qt-dbus-factory, deepin }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "dde-polkit-agent";
|
2019-05-04 12:41:59 +01:00
|
|
|
version = "0.2.6";
|
2018-11-15 02:00:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-05-04 12:41:59 +01:00
|
|
|
sha256 = "1ih78sxhnn6hbx9mzhalx95dk18f217mjbvymf8dky2vkmw8vnmx";
|
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
|
|
|
|
];
|
|
|
|
|
2019-04-20 12:18:23 +01:00
|
|
|
patches = [
|
|
|
|
./dde-polkit-agent.plugins-dir.patch
|
|
|
|
];
|
|
|
|
|
2018-11-15 02:00:15 +00:00
|
|
|
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
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|