hyprsysteminfo/nix/default.nix

51 lines
1006 B
Nix
Raw Permalink Normal View History

2024-10-13 19:00:20 +02:00
{
lib,
2024-10-14 01:09:37 +02:00
nix-gitignore,
2024-10-13 19:00:20 +02:00
stdenv,
2024-10-14 01:09:37 +02:00
2024-10-13 19:00:20 +02:00
cmake,
qt6,
pkg-config,
hyprutils,
2024-10-14 01:09:37 +02:00
pciutils,
kdePackages,
2024-10-13 19:00:20 +02:00
version ? "0",
}: let
2024-10-14 01:09:37 +02:00
inherit (lib.strings) makeBinPath;
2024-10-13 19:00:20 +02:00
in
stdenv.mkDerivation {
pname = "hyprsysteminfo";
inherit version;
2024-10-14 01:09:37 +02:00
src = nix-gitignore.gitignoreSource [] ./..;
2024-10-13 19:00:20 +02:00
nativeBuildInputs = [
cmake
pkg-config
qt6.wrapQtAppsHook
];
buildInputs = [
qt6.qtbase
2024-10-14 01:09:37 +02:00
qt6.qtdeclarative
2024-10-13 19:00:20 +02:00
qt6.qtsvg
qt6.qtwayland
hyprutils
2024-10-14 01:09:37 +02:00
kdePackages.qqc2-desktop-style
kdePackages.kirigami
2024-10-13 19:00:20 +02:00
];
2024-10-13 19:58:05 +02:00
preFixup = ''
qtWrapperArgs+=(--prefix PATH : "${makeBinPath [pciutils]}")
'';
2024-10-13 19:00:20 +02:00
meta = {
description = "A tiny qt6/qml application to display information about the running system";
homepage = "https://github.com/hyprwm/hyprsysteminfo";
license = lib.licenses.bsd3;
maintainers = [lib.maintainers.fufexan];
mainProgram = "hyprsysteminfo";
platforms = lib.platforms.linux;
};
}