mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
kdiskmark: 3.0.0 -> 3.1.4
This commit is contained in:
parent
4db8d6d7e7
commit
89f5f4ab77
1 changed files with 8 additions and 8 deletions
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue