Merge pull request #181605 from symphorien/kdiskmark
kdiskmark: init at 2.3.0
This commit is contained in:
commit
b170d6f3d5
54
pkgs/tools/filesystems/kdiskmark/default.nix
Normal file
54
pkgs/tools/filesystems/kdiskmark/default.nix
Normal file
|
@ -0,0 +1,54 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, wrapQtAppsHook
|
||||
, qtbase
|
||||
, qttools
|
||||
, fio
|
||||
, cmake
|
||||
, kauth
|
||||
, extra-cmake-modules
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
name = "kdiskmark";
|
||||
version = "2.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jonmagon";
|
||||
repo = "kdiskmark";
|
||||
rev = version;
|
||||
sha256 = "sha256-9ufRxEbqwcRs+m/YW8D3+1USCJNZEaOUZRec7gvgmtA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake wrapQtAppsHook ];
|
||||
|
||||
buildInputs = [
|
||||
qtbase
|
||||
qttools
|
||||
extra-cmake-modules
|
||||
kauth
|
||||
];
|
||||
|
||||
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
|
||||
'';
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
|
|
@ -7765,6 +7765,8 @@ with pkgs;
|
|||
|
||||
kdigger = callPackage ../tools/security/kdigger { };
|
||||
|
||||
kdiskmark = libsForQt5.callPackage ../tools/filesystems/kdiskmark { };
|
||||
|
||||
keepalived = callPackage ../tools/networking/keepalived { };
|
||||
|
||||
kexec-tools = callPackage ../os-specific/linux/kexec-tools { };
|
||||
|
|
Loading…
Reference in a new issue