xdg-desktop-portal-hyprland/nix/default.nix

73 lines
1.3 KiB
Nix
Raw Normal View History

2022-12-04 00:44:12 +01:00
{
lib,
stdenv,
makeWrapper,
meson,
ninja,
pkg-config,
libdrm,
mesa,
pipewire,
2023-09-06 20:36:48 +02:00
sdbus-cpp,
2022-12-04 00:44:12 +01:00
systemd,
2023-09-06 20:36:48 +02:00
wayland-protocols,
wayland-scanner,
qtbase,
qttools,
qtwayland,
wrapQtAppsHook,
hyprland,
2023-09-06 20:36:48 +02:00
slurp,
hyprland-protocols,
2022-12-04 00:44:12 +01:00
wayland,
version ? "git",
}:
stdenv.mkDerivation {
pname = "xdg-desktop-portal-hyprland";
inherit version;
2022-12-04 00:44:12 +01:00
src = ../.;
2022-12-04 00:44:12 +01:00
2023-04-10 13:51:52 +02:00
nativeBuildInputs = [
meson
ninja
pkg-config
wayland-scanner
makeWrapper
wrapQtAppsHook
2023-04-10 13:51:52 +02:00
];
2023-09-06 20:36:48 +02:00
2023-04-10 13:51:52 +02:00
buildInputs = [
hyprland-protocols
libdrm
mesa
pipewire
qtbase
qttools
qtwayland
2023-09-06 20:36:48 +02:00
sdbus-cpp
2023-04-10 13:51:52 +02:00
systemd
wayland
wayland-protocols
];
dontWrapQtApps = true;
postInstall = ''
wrapProgramShell $out/bin/hyprland-share-picker \
"''${qtWrapperArgs[@]}" \
--prefix PATH ":" ${lib.makeBinPath [slurp hyprland]}
wrapProgramShell $out/libexec/xdg-desktop-portal-hyprland \
--prefix PATH ":" ${lib.makeBinPath [(placeholder "out")]}
'';
2022-12-04 21:23:27 +01:00
meta = with lib; {
2022-12-11 18:03:28 +01:00
homepage = "https://github.com/hyprwm/xdg-desktop-portal-hyprland";
description = "xdg-desktop-portal backend for Hyprland";
2023-09-06 20:36:48 +02:00
license = licenses.bsd3;
maintainers = with maintainers; [fufexan];
platforms = platforms.linux;
};
}