hyprpolkitagent/nix/default.nix
2024-10-22 08:40:27 +03:00

51 lines
1 KiB
Nix

{
lib,
stdenv,
cmake,
pkg-config,
hyprutils,
kdePackages,
polkit,
qt6,
version ? "0",
}: let
inherit (lib.sources) cleanSource cleanSourceWith;
inherit (lib.strings) hasSuffix;
in
stdenv.mkDerivation {
pname = "hyprpolkitagent";
inherit version;
src = cleanSourceWith {
filter = name: _type: let
baseName = baseNameOf (toString name);
in
! (hasSuffix ".nix" baseName);
src = cleanSource ../.;
};
nativeBuildInputs = [
cmake
pkg-config
qt6.wrapQtAppsHook
];
buildInputs = [
hyprutils
kdePackages.kirigami-addons
kdePackages.polkit-qt-1
polkit
qt6.qtbase
qt6.qtsvg
qt6.qtwayland
];
meta = {
description = "A polkit authentication agent written in QT/QML";
homepage = "https://github.com/hyprwm/hyprpolkitagent";
license = lib.licenses.bsd3;
maintainers = [lib.maintainers.fufexan];
mainProgram = "hyprpolkitagent";
platforms = lib.platforms.linux;
};
}