at 24.11-pre 55 lines 1.3 kB view raw
1{ stdenv 2, lib 3, wrapQtAppsHook 4, qtbase 5, qttools 6, fio 7, cmake 8, polkit-qt 9, extra-cmake-modules 10, fetchFromGitHub 11}: 12stdenv.mkDerivation rec { 13 name = "kdiskmark"; 14 version = "3.1.4"; 15 16 src = fetchFromGitHub { 17 owner = "jonmagon"; 18 repo = "kdiskmark"; 19 rev = version; 20 sha256 = "sha256-JueY7zw9PIo9ETi7pQLpw8FGRhNXYXeXEvTzZGz9lbw="; 21 fetchSubmodules = true; 22 }; 23 24 nativeBuildInputs = [ cmake wrapQtAppsHook ]; 25 26 buildInputs = [ 27 qtbase 28 qttools 29 extra-cmake-modules 30 polkit-qt 31 ]; 32 33 preConfigure = '' 34 substituteInPlace CMakeLists.txt \ 35 --replace \$\{POLKITQT-1_POLICY_FILES_INSTALL_DIR\} $out/share/polkit-1/actions 36 ''; 37 38 qtWrapperArgs = 39 [ "--prefix" "PATH" ":" (lib.makeBinPath [ fio ]) ]; 40 41 meta = with lib; { 42 description = "HDD and SSD benchmark tool with a friendly graphical user interface"; 43 longDescription = '' 44 If kdiskmark is not run as root it can rely on polkit to get the necessary 45 privileges. In this case you must install it with `environment.systemPackages` 46 on NixOS, nix-env will not work. 47 ''; 48 homepage = "https://github.com/JonMagon/KDiskMark"; 49 maintainers = [ maintainers.symphorien ]; 50 license = licenses.gpl3Only; 51 platforms = platforms.linux; 52 mainProgram = "kdiskmark"; 53 }; 54} 55