Files
nixpkgs/pkgs/by-name/kd/kdiskmark/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

59 lines
1.3 KiB
Nix

{
stdenv,
lib,
fio,
cmake,
fetchFromGitHub,
kdePackages,
}:
stdenv.mkDerivation rec {
pname = "kdiskmark";
version = "3.2.0";
src = fetchFromGitHub {
owner = "jonmagon";
repo = "kdiskmark";
rev = version;
hash = "sha256-b42PNUrG10RyGct6dPtdT89oO222tEovkSPoRcROfaQ=";
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 = with lib; {
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 = [ maintainers.symphorien ];
license = licenses.gpl3Only;
platforms = platforms.linux;
mainProgram = "kdiskmark";
};
}