2022-12-04 00:44:12 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
makeWrapper,
|
|
|
|
meson,
|
|
|
|
ninja,
|
|
|
|
pkg-config,
|
|
|
|
wayland-protocols,
|
|
|
|
wayland-scanner,
|
2022-12-09 14:37:23 +01:00
|
|
|
hyprland-share-picker,
|
2023-02-11 16:59:30 +01:00
|
|
|
grim,
|
|
|
|
slurp,
|
2022-12-04 22:12:57 +01:00
|
|
|
hyprland-protocols,
|
2022-12-04 00:44:12 +01:00
|
|
|
inih,
|
|
|
|
libdrm,
|
2023-04-10 13:51:52 +02:00
|
|
|
libuuid,
|
2022-12-04 00:44:12 +01:00
|
|
|
mesa,
|
|
|
|
pipewire,
|
|
|
|
systemd,
|
|
|
|
wayland,
|
|
|
|
version ? "git",
|
2022-12-09 14:37:23 +01:00
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "xdg-desktop-portal-hyprland";
|
|
|
|
inherit version;
|
2022-12-04 00:44:12 +01:00
|
|
|
|
2022-12-09 14:37:23 +01:00
|
|
|
src = ../.;
|
2022-12-04 00:44:12 +01:00
|
|
|
|
2022-12-09 14:37:23 +01:00
|
|
|
strictDeps = true;
|
|
|
|
depsBuildBuild = [pkg-config];
|
2023-04-10 13:51:52 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
wayland-scanner
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
hyprland-protocols
|
|
|
|
inih
|
|
|
|
libdrm
|
|
|
|
libuuid
|
|
|
|
mesa
|
|
|
|
pipewire
|
|
|
|
systemd
|
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
];
|
2022-12-04 22:12:57 +01:00
|
|
|
|
2022-12-09 14:37:23 +01:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dsd-bus-provider=libsystemd"
|
|
|
|
];
|
2022-12-04 00:44:12 +01:00
|
|
|
|
2022-12-09 14:37:23 +01:00
|
|
|
postInstall = ''
|
2023-02-11 16:59:30 +01:00
|
|
|
wrapProgram $out/libexec/xdg-desktop-portal-hyprland --prefix PATH ":" ${lib.makeBinPath [hyprland-share-picker grim slurp]}
|
2022-12-09 14:37:23 +01:00
|
|
|
'';
|
2022-12-04 21:23:27 +01:00
|
|
|
|
2022-12-09 14:37:23 +01:00
|
|
|
meta = with lib; {
|
2022-12-11 18:03:28 +01:00
|
|
|
homepage = "https://github.com/hyprwm/xdg-desktop-portal-hyprland";
|
2022-12-09 14:37:23 +01:00
|
|
|
description = "xdg-desktop-portal backend for Hyprland";
|
|
|
|
maintainers = with maintainers; [fufexan];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|