Files
2026-06-12 20:12:07 +00:00

59 lines
1.3 KiB
Nix

{
stdenv,
lib,
fio,
cmake,
fetchFromGitHub,
kdePackages,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "kdiskmark";
version = "3.3.0";
src = fetchFromGitHub {
owner = "jonmagon";
repo = "kdiskmark";
rev = finalAttrs.version;
hash = "sha256-cdKkOe5BbzF8K+buwctsSMlw4ko0DrNHZ2HwJA9Det4=";
fetchSubmodules = true;
};
nativeBuildInputs = with kdePackages; [
cmake
extra-cmake-modules
wrapQtAppsHook
];
buildInputs = with kdePackages; [
qtbase
qttools
polkit-qt-1
];
preConfigure = ''
substituteInPlace CMakeLists.txt \
--replace-fail \$\{POLKITQT-1_POLICY_FILES_INSTALL_DIR\} $out/share/polkit-1/actions
'';
qtWrapperArgs = [
"--prefix"
"PATH"
":"
(lib.makeBinPath [ fio ])
];
meta = {
description = "HDD and SSD benchmark tool with a friendly graphical user interface";
longDescription = ''
If kdiskmark is not run as root it can rely on polkit to get the necessary
privileges. In this case you must install it with `environment.systemPackages`
on NixOS, nix-env will not work.
'';
homepage = "https://github.com/JonMagon/KDiskMark";
maintainers = [ lib.maintainers.symphorien ];
license = lib.licenses.gpl3Only;
platforms = lib.platforms.linux;
mainProgram = "kdiskmark";
};
})