mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-06 08:45:58 +01:00
eb3f3d9854
* move to hw-s * hyprland-share-picker: add missing sources to meson, format CMake * CMake: bump hw-s version * CMake: fix protocolnew external protos * CMake: get wayland.xml from wayland-scanner * Nix: add missing deps * Meson: use hw-s for protocols, add hyprutils --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
88 lines
1.5 KiB
Nix
88 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
cmake,
|
|
makeWrapper,
|
|
pkg-config,
|
|
wrapQtAppsHook,
|
|
hyprland,
|
|
hyprland-protocols,
|
|
hyprlang,
|
|
hyprutils,
|
|
hyprwayland-scanner,
|
|
libdrm,
|
|
mesa,
|
|
pipewire,
|
|
qtbase,
|
|
qttools,
|
|
qtwayland,
|
|
sdbus-cpp,
|
|
slurp,
|
|
systemd,
|
|
wayland,
|
|
wayland-protocols,
|
|
wayland-scanner,
|
|
debug ? false,
|
|
version ? "git",
|
|
}:
|
|
stdenv.mkDerivation {
|
|
pname = "xdg-desktop-portal-hyprland" + lib.optionalString debug "-debug";
|
|
inherit version;
|
|
|
|
src = ../.;
|
|
|
|
depsBuildBuild = [
|
|
pkg-config
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
makeWrapper
|
|
pkg-config
|
|
wrapQtAppsHook
|
|
hyprwayland-scanner
|
|
];
|
|
|
|
buildInputs = [
|
|
hyprland-protocols
|
|
hyprlang
|
|
hyprutils
|
|
libdrm
|
|
mesa
|
|
pipewire
|
|
qtbase
|
|
qttools
|
|
qtwayland
|
|
sdbus-cpp
|
|
systemd
|
|
wayland
|
|
wayland-protocols
|
|
wayland-scanner
|
|
];
|
|
|
|
cmakeBuildType =
|
|
if debug
|
|
then "Debug"
|
|
else "RelWithDebInfo";
|
|
|
|
dontStrip = true;
|
|
|
|
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")]}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/hyprwm/xdg-desktop-portal-hyprland";
|
|
description = "xdg-desktop-portal backend for Hyprland";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [fufexan];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|