deepin.dde-polkit-agent: 0.2.1 -> 0.2.4
This commit is contained in:
parent
45f6c5dfe8
commit
fe14523321
|
@ -4,19 +4,20 @@
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
pname = "dde-polkit-agent";
|
pname = "dde-polkit-agent";
|
||||||
version = "0.2.1";
|
version = "0.2.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "linuxdeepin";
|
owner = "linuxdeepin";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1n3hys5hhhd99ycpx4im6ihy53vl9c28z7ls7smn117h3ca4c8wc";
|
sha256 = "1x7mv63g8412w1bq7fijsdzi8832qjb6gnr1nykcv7imzlycq9m6";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkgconfig
|
pkgconfig
|
||||||
qmake
|
qmake
|
||||||
qttools
|
qttools
|
||||||
|
deepin.setupHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
@ -27,16 +28,15 @@ stdenv.mkDerivation rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs .
|
searchHardCodedPaths
|
||||||
|
patchShebangs translate_generation.sh
|
||||||
|
|
||||||
sed -i dde-polkit-agent.pro polkit-dde-authentication-agent-1.desktop \
|
fixPath $out /usr dde-polkit-agent.pro polkit-dde-authentication-agent-1.desktop
|
||||||
-e "s,/usr,$out,"
|
fixPath /run/current-system/sw /usr/lib/polkit-1-dde/plugins pluginmanager.cpp
|
||||||
|
'';
|
||||||
|
|
||||||
sed -i pluginmanager.cpp \
|
postFixup = ''
|
||||||
-e "s,/usr/lib/polkit-1-dde/plugins,/run/current-system/sw/lib/polkit-1-dde/plugins,"
|
searchHardCodedPaths $out
|
||||||
|
|
||||||
# Deprecate dcombobox.h header
|
|
||||||
sed -i 's|dcombobox.h|QComboBox|' AuthDialog.h
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||||
|
|
Loading…
Reference in New Issue