mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
Merge pull request #334388 from RoyDubnium/qdiskinfo-init
qdiskinfo: init at 0.2
This commit is contained in:
commit
52d9f7d6b9
50
pkgs/by-name/qd/qdiskinfo/package.nix
Normal file
50
pkgs/by-name/qd/qdiskinfo/package.nix
Normal file
@ -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 \
|
||||
--suffix 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";
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user