Merge pull request #288153 from acuteaura/patch-2

kdiskmark: 3.0.0 -> 3.1.4
This commit is contained in:
Guillaume Girol 2024-02-16 22:14:58 +01:00 committed by GitHub
commit 5ec215f216
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,19 +5,20 @@
, qttools
, fio
, cmake
, kauth
, polkit-qt
, extra-cmake-modules
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
name = "kdiskmark";
version = "3.0.0";
version = "3.1.4";
src = fetchFromGitHub {
owner = "jonmagon";
repo = "kdiskmark";
rev = version;
sha256 = "sha256-fDimH0BX0zxGuOMNLhNbMGMr2pS+qbZhflSpoLFK+Ng=";
sha256 = "sha256-JueY7zw9PIo9ETi7pQLpw8FGRhNXYXeXEvTzZGz9lbw=";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake wrapQtAppsHook ];
@ -26,13 +27,12 @@ stdenv.mkDerivation rec {
qtbase
qttools
extra-cmake-modules
kauth
polkit-qt
];
postInstall = ''
# so that kdiskmark can be used as unpriviledged user even on non-kde
# (where kauth is not in environment.systemPackages)
ln -s ${kauth}/share/dbus-1/system.d/org.kde.kf5auth.conf $out/share/dbus-1/system.d/00-kdiskmark-needs-org.kde.kf5auth.conf
preConfigure = ''
substituteInPlace CMakeLists.txt \
--replace \$\{POLKITQT-1_POLICY_FILES_INSTALL_DIR\} $out/share/polkit-1/actions
'';
qtWrapperArgs =