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

51 lines
1.1 KiB
Nix
Raw Normal View History

2022-12-04 00:44:12 +01:00
{
lib,
stdenv,
fetchpatch,
makeWrapper,
meson,
ninja,
pkg-config,
wayland-protocols,
wayland-scanner,
hyprland-share-picker,
grim,
slurp,
hyprland-protocols,
2022-12-04 00:44:12 +01:00
inih,
libdrm,
mesa,
pipewire,
systemd,
wayland,
2022-12-04 21:23:27 +01:00
libsForQt5,
2022-12-04 00:44:12 +01:00
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
strictDeps = true;
depsBuildBuild = [pkg-config];
nativeBuildInputs = [meson ninja pkg-config wayland-scanner makeWrapper];
buildInputs = [hyprland-protocols inih libdrm mesa pipewire systemd wayland wayland-protocols];
mesonFlags = [
"-Dsd-bus-provider=libsystemd"
];
2022-12-04 00:44:12 +01:00
postInstall = ''
wrapProgram $out/libexec/xdg-desktop-portal-hyprland --prefix PATH ":" ${lib.makeBinPath [hyprland-share-picker grim slurp]}
'';
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";
maintainers = with maintainers; [fufexan];
platforms = platforms.linux;
license = licenses.mit;
};
}