about summary refs log tree commit diff
path: root/pkgs/by-name/qd
diff options
context:
space:
mode:
authorRoyDubnium2024-07-31 14:10:22 +0100
committerRoyDubnium2024-08-14 18:24:24 +0100
commita1553e1c2753c418ccbfde68c969510e43056675 (patch)
tree0f7f8f2aa8c76990d937ba6cc51464d8612061ca /pkgs/by-name/qd
parentebd625a22a0f80eb127dc4139ec5e339f63074c4 (diff)
qdiskinfo: init at 0.2
Diffstat (limited to 'pkgs/by-name/qd')
-rw-r--r--pkgs/by-name/qd/qdiskinfo/package.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/by-name/qd/qdiskinfo/package.nix b/pkgs/by-name/qd/qdiskinfo/package.nix
new file mode 100644
index 000000000000..bc51e1880b74
--- /dev/null
+++ b/pkgs/by-name/qd/qdiskinfo/package.nix
@@ -0,0 +1,50 @@
+{
+  lib,
+  stdenv,
+  smartmontools,
+  fetchFromGitHub,
+  cmake,
+  qt6,
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "QDiskInfo";
+  version = "0.2";
+
+  src = fetchFromGitHub {
+    owner = "edisionnano";
+    repo = "QDiskInfo";
+    rev = "refs/tags/${finalAttrs.version}";
+    hash = "sha256-YLNpQOmh/exBJDuYRUEvzNv/El4x+PttEoj+aCur9wg=";
+  };
+
+  nativeBuildInputs = [
+    cmake
+    qt6.wrapQtAppsHook
+  ];
+
+  buildInputs = [
+    qt6.qtbase
+    qt6.qtwayland
+    smartmontools
+  ];
+
+  cmakeFlags = [
+    "-DCMAKE_BUILD_TYPE:STRING=MinSizeRel"
+    "-DQT_VERSION_MAJOR=6"
+  ];
+
+  postInstall = ''
+    wrapProgram $out/bin/QDiskInfo \
+      --prefix PATH : ${smartmontools}/bin
+  '';
+
+  meta = {
+    description = "CrystalDiskInfo alternative for Linux";
+    homepage = "https://github.com/edisionnano/QDiskInfo";
+    license = lib.licenses.gpl3Plus;
+    maintainers = with lib.maintainers; [ roydubnium ];
+    platforms = lib.platforms.linux;
+    mainProgram = "QDiskInfo";
+  };
+})